Browse Source

mpegvideo: re-indent buffer clearing code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Hendrik Leppkes Michael Niedermayer 12 years ago
parent
commit
bc249bd673
1 changed files with 13 additions and 13 deletions
  1. +13
    -13
      libavcodec/mpegvideo.c

+ 13
- 13
libavcodec/mpegvideo.c View File

@@ -1775,20 +1775,20 @@ int ff_MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
}

if (!avctx->hwaccel) {
for(i=0; i<avctx->height; i++)
memset(s->last_picture_ptr->f.data[0] + s->last_picture_ptr->f.linesize[0]*i,
0x80, avctx->width);
for(i=0; i<FF_CEIL_RSHIFT(avctx->height, v_chroma_shift); i++) {
memset(s->last_picture_ptr->f.data[1] + s->last_picture_ptr->f.linesize[1]*i,
0x80, FF_CEIL_RSHIFT(avctx->width, h_chroma_shift));
memset(s->last_picture_ptr->f.data[2] + s->last_picture_ptr->f.linesize[2]*i,
0x80, FF_CEIL_RSHIFT(avctx->width, h_chroma_shift));
}

if(s->codec_id == AV_CODEC_ID_FLV1 || s->codec_id == AV_CODEC_ID_H263){
for(i=0; i<avctx->height; i++)
memset(s->last_picture_ptr->f.data[0] + s->last_picture_ptr->f.linesize[0]*i, 16, avctx->width);
}
memset(s->last_picture_ptr->f.data[0] + s->last_picture_ptr->f.linesize[0]*i,
0x80, avctx->width);
for(i=0; i<FF_CEIL_RSHIFT(avctx->height, v_chroma_shift); i++) {
memset(s->last_picture_ptr->f.data[1] + s->last_picture_ptr->f.linesize[1]*i,
0x80, FF_CEIL_RSHIFT(avctx->width, h_chroma_shift));
memset(s->last_picture_ptr->f.data[2] + s->last_picture_ptr->f.linesize[2]*i,
0x80, FF_CEIL_RSHIFT(avctx->width, h_chroma_shift));
}

if(s->codec_id == AV_CODEC_ID_FLV1 || s->codec_id == AV_CODEC_ID_H263){
for(i=0; i<avctx->height; i++)
memset(s->last_picture_ptr->f.data[0] + s->last_picture_ptr->f.linesize[0]*i, 16, avctx->width);
}
}

ff_thread_report_progress(&s->last_picture_ptr->tf, INT_MAX, 0);


Loading…
Cancel
Save