OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e33e7b
)
vc1: fix decoding when end sequence is present
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Wed, 2 Mar 2011 11:17:33 +0000
(11:17 +0000)
committer
Mans Rullgard
<mans@mansr.com>
Wed, 2 Mar 2011 13:32:58 +0000
(13:32 +0000)
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/vc1dec.c
patch
|
blob
|
history
diff --git
a/libavcodec/vc1dec.c
b/libavcodec/vc1dec.c
index
ed92d8c
..
b27b6d0
100644
(file)
--- a/
libavcodec/vc1dec.c
+++ b/
libavcodec/vc1dec.c
@@
-3149,7
+3149,7
@@
static int vc1_decode_frame(AVCodecContext *avctx,
const uint8_t *buf_start = buf;
/* no supplementary picture */
- if (buf_size == 0) {
+ if (buf_size == 0
|| (buf_size == 4 && AV_RB32(buf) == VC1_CODE_ENDOFSEQ)
) {
/* special case for last picture */
if (s->low_delay==0 && s->next_picture_ptr) {
*pict= *(AVFrame*)s->next_picture_ptr;