Skip to content

Commit

Permalink
Revert "libavcodec/internal.h: fix compilation with MSVC"
Browse files Browse the repository at this point in the history
This reverts commit 066a0866f3cccbde7b65cda0a4b24b3c95ebf3be.
  • Loading branch information
ulmus-scott authored and bennettpeter committed Jul 1, 2022
1 parent 54ab78b commit b7d45f7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions mythtv/external/FFmpeg/libavcodec/internal.h
Expand Up @@ -279,16 +279,8 @@ static av_always_inline int64_t ff_samples_to_time_base(AVCodecContext *avctx,
{
if(samples == AV_NOPTS_VALUE)
return AV_NOPTS_VALUE;
#ifndef _MSC_VER
return av_rescale_q(samples, (AVRational){ 1, avctx->sample_rate },
avctx->time_base);
#else
AVRational rational;
rational.num = 1;
rational.den = avctx->sample_rate;

return av_rescale_q(samples, rational, avctx->time_base);
#endif
}

/**
Expand Down

0 comments on commit b7d45f7

Please sign in to comment.