summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-20 20:40:22 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-20 20:40:22 +0100
commit15a686b714a2a5a9c0a012458357bf9df8bbdc2d (patch)
treef52b2339eba76069176724532eddf57d87d2a974 /libavcodec/mpegvideo.c
parent50d6f8195658d529c57bb42dfd8d7a71d60a9f1d (diff)
h263: make default color black, like flv
Fixes Ticket126 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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 9ab52efd1f..6893a3a8cd 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1134,7 +1134,7 @@ int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
if(ff_alloc_picture(s, s->last_picture_ptr, 0) < 0)
return -1;
- if(s->codec_id == CODEC_ID_FLV1){
+ if(s->codec_id == CODEC_ID_FLV1 || s->codec_id == CODEC_ID_H263){
for(i=0; i<s->height; i++)
memset(s->last_picture_ptr->f.data[0] + s->last_picture_ptr->f.linesize[0]*i, 16, s->width);
}