[FFmpeg-devel] [PATCH 2/2] avformat/utils: change bitrate to int64_t in av_find_best_stream

Michael Niedermayer michael at niedermayer.cc
Sat Jun 3 20:07:36 EEST 2017


On Fri, Jun 02, 2017 at 11:10:14PM +0200, Marton Balint wrote:
> Signed-off-by: Marton Balint <cus at passwd.hu>
> ---
>  libavformat/utils.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/libavformat/utils.c b/libavformat/utils.c
> index b544b6f9c5..aa2a00552e 100644
> --- a/libavformat/utils.c
> +++ b/libavformat/utils.c
> @@ -4098,8 +4098,10 @@ int av_find_best_stream(AVFormatContext *ic, enum AVMediaType type,
>  {
>      int i, nb_streams = ic->nb_streams;
>      int ret = AVERROR_STREAM_NOT_FOUND;
> -    int best_count = -1, best_bitrate = -1, best_multiframe = -1, best_disposition = -1;
> -    int count, bitrate, multiframe, disposition;
> +    int best_count = -1, best_multiframe = -1, best_disposition = -1;
> +    int count, multiframe, disposition;
> +    int64_t best_bitrate = -1;
> +    int64_t bitrate;
>      unsigned *program = NULL;
>      const AVCodec *decoder = NULL, *best_decoder = NULL;

LGTM

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety -- Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170603/ab798a66/attachment.sig>


More information about the ffmpeg-devel mailing list