[FFmpeg-cvslog] prores:cosmetics
Michael Niedermayer
git at videolan.org
Sun Oct 9 22:08:06 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Oct 9 21:51:06 2011 +0200| [ebba05b3c51cffbfe2f758dd6bc70c4f14906dfe] | committer: Michael Niedermayer
prores:cosmetics
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ebba05b3c51cffbfe2f758dd6bc70c4f14906dfe
---
libavcodec/proresdec_gpl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/proresdec_gpl.c b/libavcodec/proresdec_gpl.c
index 96da844..9fbb8ee 100644
--- a/libavcodec/proresdec_gpl.c
+++ b/libavcodec/proresdec_gpl.c
@@ -171,7 +171,7 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf,
ctx->frame.top_field_first = ctx->frame_type == 1;
}
- avctx->pix_fmt = ((buf[12] & 0xC0) == 0xC0) ? PIX_FMT_YUV444P10 : PIX_FMT_YUV422P10;
+ avctx->pix_fmt = (buf[12] & 0xC0) == 0xC0 ? PIX_FMT_YUV444P10 : PIX_FMT_YUV422P10;
ptr = buf + 20;
flags = buf[19];
@@ -298,7 +298,7 @@ static int decode_picture_header(AVCodecContext *avctx, const uint8_t *buf, cons
rice_order = codebook >> 5; \
exp_order = (codebook >> 2) & 7; \
\
- q = 31-av_log2(buf); \
+ q = 31 - av_log2(buf); \
\
if (q > switch_bits) { /* exp golomb */ \
bits = exp_order - switch_bits + (q<<1); \
@@ -558,7 +558,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
int buf_size = avpkt->size;
int frame_hdr_size, pic_size;
- if (buf_size < 28 || AV_RL32(buf + 4) != AV_RL32("icpf")) {
+ if (buf_size < 28 || AV_RL32(buf + 4) != AV_RL32("icpf")) {
av_log(avctx, AV_LOG_ERROR, "invalid frame header\n");
return -1;
}
More information about the ffmpeg-cvslog
mailing list