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:43:04 +0200
commitf743c4ece8a857f475fe2e4188c26095fdd9a04d (patch)
tree3d33df20a4a14359ea62d2e53a013c9bbedffa59
parent86bf0a8871dfd447709232fc1f4b48e524c9e6df (diff)
downloadffmpeg-f743c4ece8a857f475fe2e4188c26095fdd9a04d.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 14fc2f77e0..248dd2cb13 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1301,7 +1301,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;
}