aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-07-15 21:19:37 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-07-15 21:19:37 +0000
commit760acb18a347d2265afd34d174647c119035aef4 (patch)
tree0f8b02194acec2631d087e2795f71456bd679e99 /libavcodec/mpegvideo.c
parent0fd90455ecdf4f9be58c510e0a85d24829cf8845 (diff)
downloadffmpeg-760acb18a347d2265afd34d174647c119035aef4.tar.gz
direct rendering for SVQ1
MpegEncContext->opaque MUST NOT be used by the codec, its for the parent program using standart values for pict_type using (uv)linesize handling dropable p-frames like b-frames Originally committed as revision 763 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 6528ee9a35..52f045bb6f 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -651,7 +651,7 @@ void MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
s->last_dr_opaque= s->next_dr_opaque;
s->next_dr_opaque= avctx->dr_opaque_frame;
- if(s->has_b_frames && s->last_dr_opaque)
+ if(s->has_b_frames && s->last_dr_opaque && s->codec_id!=CODEC_ID_SVQ1)
avctx->dr_opaque_frame= s->last_dr_opaque;
else
avctx->dr_opaque_frame= s->next_dr_opaque;