mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-28 17:51:05 +00:00
avcodec/mpegutils: Reindent after the previous commit
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
678f1b1cf4
commit
f63c6c81d4
@ -56,7 +56,6 @@ void ff_draw_horiz_band(AVCodecContext *avctx,
|
|||||||
const int field_pic = picture_structure != PICT_FRAME;
|
const int field_pic = picture_structure != PICT_FRAME;
|
||||||
const AVFrame *src;
|
const AVFrame *src;
|
||||||
int offset[AV_NUM_DATA_POINTERS];
|
int offset[AV_NUM_DATA_POINTERS];
|
||||||
int i;
|
|
||||||
|
|
||||||
if (!avctx->draw_horiz_band)
|
if (!avctx->draw_horiz_band)
|
||||||
return;
|
return;
|
||||||
@ -83,16 +82,16 @@ void ff_draw_horiz_band(AVCodecContext *avctx,
|
|||||||
if (cur->pict_type == AV_PICTURE_TYPE_B &&
|
if (cur->pict_type == AV_PICTURE_TYPE_B &&
|
||||||
picture_structure == PICT_FRAME &&
|
picture_structure == PICT_FRAME &&
|
||||||
avctx->codec_id != AV_CODEC_ID_SVQ3) {
|
avctx->codec_id != AV_CODEC_ID_SVQ3) {
|
||||||
for (i = 0; i < AV_NUM_DATA_POINTERS; i++)
|
for (int i = 0; i < AV_NUM_DATA_POINTERS; i++)
|
||||||
offset[i] = 0;
|
offset[i] = 0;
|
||||||
} else {
|
} else {
|
||||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
|
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
|
||||||
int vshift = desc->log2_chroma_h;
|
int vshift = desc->log2_chroma_h;
|
||||||
|
|
||||||
offset[0]= y * src->linesize[0];
|
offset[0] = y * src->linesize[0];
|
||||||
offset[1]=
|
offset[1] =
|
||||||
offset[2]= (y >> vshift) * src->linesize[1];
|
offset[2] = (y >> vshift) * src->linesize[1];
|
||||||
for (i = 3; i < AV_NUM_DATA_POINTERS; i++)
|
for (int i = 3; i < AV_NUM_DATA_POINTERS; i++)
|
||||||
offset[i] = 0;
|
offset[i] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user