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:47:23 +0200
commit1821c849da5be820c207eba11470d059473ea6df (patch)
tree991436bebfcf9470765c2078e9f621b23940bcc3
parenta4522ae516b58175c447b65cb44536db08f82552 (diff)
downloadffmpeg-1821c849da5be820c207eba11470d059473ea6df.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 a09bebd57c..87a5e7cf00 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1328,7 +1328,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;
}