aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-31 03:08:25 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-08-31 09:40:29 +0200
commit6b5c4be9e0b59b55f7c74466f0d6225623687c61 (patch)
treee158388e6818cf383273fb257bbe9b75c5c805cb
parent5bd2b24db399d9821a0396f96dc8e2392d80abe1 (diff)
downloadffmpeg-6b5c4be9e0b59b55f7c74466f0d6225623687c61.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index cf5f86fba8..ce621d6729 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1288,7 +1288,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;
}