OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2014b51
)
Do not attempt to decode RV30/40 B-frames without anchors.
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sun, 7 Dec 2008 16:30:08 +0000
(16:30 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sun, 7 Dec 2008 16:30:08 +0000
(16:30 +0000)
This fixes issue 747.
Originally committed as revision 16031 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/rv34.c
patch
|
blob
|
history
diff --git
a/libavcodec/rv34.c
b/libavcodec/rv34.c
index
4635943
..
6cf5869
100644
(file)
--- a/
libavcodec/rv34.c
+++ b/
libavcodec/rv34.c
@@
-1406,6
+1406,8
@@
int ff_rv34_decode_frame(AVCodecContext *avctx,
}else
r->si.end = si.start;
}
+ if(!i && si.type == FF_B_TYPE && (!s->last_picture_ptr || !s->last_picture_ptr->data[0]))
+ return -1;
last = rv34_decode_slice(r, r->si.end, buf + offset, size);
s->mb_num_left = r->s.mb_x + r->s.mb_y*r->s.mb_width - r->si.start;
if(last)