diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2014-02-25 11:47:28 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-25 13:47:16 +0100 |
commit | bc249bd6736f2ba5e8adbcf27b92519e89bd3754 (patch) | |
tree | 512e77324108d8f52079c8177c2825c8e4c31da0 /libavcodec/mpegvideo.c | |
parent | fa84231ee8f399518cec8ea48efa386eb149cd21 (diff) | |
download | ffmpeg-bc249bd6736f2ba5e8adbcf27b92519e89bd3754.tar.gz |
mpegvideo: re-indent buffer clearing code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index b9d8f549c5..3df13100e6 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -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); |