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:34:06 +0200
commit49f434ce2e5e57c57d3820330382e9c85f587086 (patch)
tree787126326ce304773451d2aa729636f7e27149c5
parent466911f0004a494b46991c193c09c8452ed26dbc (diff)
downloadffmpeg-49f434ce2e5e57c57d3820330382e9c85f587086.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 9c13f43d78..7f64e9a36e 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1280,7 +1280,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;
}