summaryrefslogtreecommitdiff
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-29 15:11:34 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-29 15:11:34 +0200
commitb96dc093eaf3adaf5df80559cbbaba00d1708adf (patch)
tree81ed0d099ff08881dde2451de4f5a7b119d272fd /libavformat/avidec.c
parent8672fc7b0453098d862bb1c0caafab4823ee0b4e (diff)
parent065b3a1cfa3f23aedf76244b3f3883ba913173ff (diff)
downloadffmpeg-b96dc093eaf3adaf5df80559cbbaba00d1708adf.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: wmalosslessdec: increase channel_coeffs/residues size wmalosslessdec: increase WMALL_BLOCK_MAX_BITS to 14. lagarith: check count before writing zeros. wmaprodec: check num_vec_coeffs for validity avidec: use actually read size instead of requested size avidec: return 0, not packet size from read_packet(). Conflicts: libavcodec/lagarith.c libavcodec/wmalosslessdec.c libavcodec/wmaprodec.c libavformat/avidec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index c4d41e5449..de945829f4 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1205,7 +1205,7 @@ resync:
}
ast->frame_offset += get_duration(ast, pkt->size);
}
- ast->remaining -= size;
+ ast->remaining -= err;
if(!ast->remaining){
avi->stream_index= -1;
ast->packet_size= 0;
@@ -1227,7 +1227,7 @@ resync:
avi->dts_max = dts;
}
- return size;
+ return 0;
}
if ((err = avi_sync(s, 0)) < 0)