You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
h263: make default color black, like flv
Fixes Ticket126 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -1134,7 +1134,7 @@ int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
|
|||||||
if(ff_alloc_picture(s, s->last_picture_ptr, 0) < 0)
|
if(ff_alloc_picture(s, s->last_picture_ptr, 0) < 0)
|
||||||
return -1;
|
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++)
|
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);
|
memset(s->last_picture_ptr->f.data[0] + s->last_picture_ptr->f.linesize[0]*i, 16, s->width);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user