aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2017-06-02 22:45:02 +0200
committerMarton Balint <cus@passwd.hu>2017-06-04 15:02:53 +0200
commit880504814a849c62077650f6ded2fe7ddea3d4bc (patch)
tree0f9e7f65daf3864433fde4d202d586dcc8306eae
parent47c699f7be16f58004061408fc4d0676cef0a3b3 (diff)
downloadffmpeg-880504814a849c62077650f6ded2fe7ddea3d4bc.tar.gz
avformat/utils: change bitrate to int64_t in av_find_best_stream
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--libavformat/utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index a08975ddec..c97d248db0 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;