prettyprinting cosmetics

Originally committed as revision 19767 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Diego Biurrun 16 years ago
parent bbb0bdd533
commit d87d5025aa
  1. 9
      libavcodec/v210dec.c
  2. 9
      libavcodec/v210enc.c

@ -40,7 +40,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
return 0;
}
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
AVPacket *avpkt)
{
int h, w;
AVFrame *pic = avctx->coded_frame;
@ -100,9 +101,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
}
psrc += stride;
y += pic->linesize[0]/2 - avctx->width;
u += pic->linesize[1]/2 - avctx->width/2;
v += pic->linesize[2]/2 - avctx->width/2;
y += pic->linesize[0] / 2 - avctx->width;
u += pic->linesize[1] / 2 - avctx->width / 2;
v += pic->linesize[2] / 2 - avctx->width / 2;
}
*data_size = sizeof(AVFrame);

@ -48,7 +48,8 @@ static av_cold int encode_init(AVCodecContext *avctx)
return 0;
}
static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)
static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
int buf_size, void *data)
{
const AVFrame *pic = data;
int aligned_width = ((avctx->width + 47) / 48) * 48;
@ -101,9 +102,9 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
pdst += stride;
memset(p, 0, pdst - p);
p = pdst;
y += pic->linesize[0]/2 - avctx->width;
u += pic->linesize[1]/2 - avctx->width/2;
v += pic->linesize[2]/2 - avctx->width/2;
y += pic->linesize[0] / 2 - avctx->width;
u += pic->linesize[1] / 2 - avctx->width / 2;
v += pic->linesize[2] / 2 - avctx->width / 2;
}
return p - buf;

Loading…
Cancel
Save