]> git.sesse.net Git - ffmpeg/commitdiff
h263: make default color black, like flv
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 20 Nov 2011 19:40:22 +0000 (20:40 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 20 Nov 2011 19:40:22 +0000 (20:40 +0100)
Fixes Ticket126

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpegvideo.c

index 9ab52efd1f707ebd521d04e2d23d8132a795cd20..6893a3a8cd08d1507507ce5e309a2ebe515d97ef 100644 (file)
@@ -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);
             }