projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ac7ecd
)
fixing NULL reference frame with dr1
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 17 Jul 2002 17:50:42 +0000
(17:50 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 17 Jul 2002 17:50:42 +0000
(17:50 +0000)
Originally committed as revision 775 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegvideo.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegvideo.c
b/libavcodec/mpegvideo.c
index
9f2cd49
..
73c8327
100644
(file)
--- a/
libavcodec/mpegvideo.c
+++ b/
libavcodec/mpegvideo.c
@@
-637,6
+637,12
@@
void MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
for(i=0;i<3;i++) {
if(avctx->flags&CODEC_FLAG_DR1)
s->aux_picture[i]= avctx->dr_buffer[i];
+
+ //FIXME the following should never be needed, the decoder should drop b frames if no reference is available
+ if(s->next_picture[i]==NULL)
+ s->next_picture[i]= s->aux_picture[i];
+ if(s->last_picture[i]==NULL)
+ s->last_picture[i]= s->next_picture[i];
s->current_picture[i] = s->aux_picture[i];
}