diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-31 03:08:25 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-08-31 09:45:14 +0200 |
commit | 32cff0d3f096293189916ea438918bcca0445d50 (patch) | |
tree | 34e8bb2ad26fa5e683248eb8849f0ec815578784 | |
parent | ddce97c7b0e460bafa0e7da72b6c4b8193f23cda (diff) | |
download | ffmpeg-32cff0d3f096293189916ea438918bcca0445d50.tar.gz |
avformat/avidec: match first index and first packet size=0 handling
Fixes Ticket2861
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 227a0eb5a92409572f2cecde6137529b83e7d495)
Conflicts:
libavformat/avidec.c
-rw-r--r-- | libavformat/avidec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 6513f3f9eb..4852e44f12 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -1303,7 +1303,7 @@ static int avi_read_idx1(AVFormatContext *s, int size) st = s->streams[index]; ast = st->priv_data; - if(first_packet && first_packet_pos && len) { + if (first_packet && first_packet_pos) { data_offset = first_packet_pos - pos; first_packet = 0; } |