summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-05-26 17:09:44 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-05-26 19:04:46 +0200
commit7f5c6ea5110237394a24d249e19ee3a9b829306f (patch)
tree1d2f65b4c66c14b05da11a9f5c76b97185c5a610 /libavformat/utils.c
parenta0f76b825c8105acb4428ea60146687e90cfdc83 (diff)
avformat/utils: Fix use of uninitialized variable
Fixes CID1361961 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index d1e4306906..468ba1a2d6 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3265,7 +3265,7 @@ void ff_rfps_calculate(AVFormatContext *ic)
int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
{
- int i, count, ret = 0, j;
+ int i, count = 0, ret = 0, j;
int64_t read_size;
AVStream *st;
AVCodecContext *avctx;
@@ -3384,7 +3384,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
ic->streams[i]->info->fps_last_dts = AV_NOPTS_VALUE;
}
- count = 0;
read_size = 0;
for (;;) {
int analyzed_all_streams;