git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f87a2e1
)
avcodec/dvdec: dont try to decode ac when theres no input
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 28 Oct 2013 21:55:53 +0000
(22:55 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 28 Oct 2013 22:09:35 +0000
(23:09 +0100)
fixes reading out of an empty bitstream
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dvdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/dvdec.c
b/libavcodec/dvdec.c
index
b86926a
..
c46c2ff
100644
(file)
--- a/
libavcodec/dvdec.c
+++ b/
libavcodec/dvdec.c
@@
-237,7
+237,7
@@
static int dv_decode_video_segment(AVCodecContext *avctx, void *arg)
flush_put_bits(&vs_pb);
for (mb_index = 0; mb_index < 5; mb_index++) {
for (j = 0; j < s->sys->bpm; j++) {
- if (mb->pos < 64) {
+ if (mb->pos < 64
&& get_bits_left(&gb) > 0
) {
av_dlog(avctx, "start %d:%d\n", mb_index, j);
dv_decode_ac(&gb, mb, block);
}