summaryrefslogtreecommitdiff
path: root/libavcodec/cyuv.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2009-12-23 09:04:57 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2009-12-23 09:04:57 +0000
commit5590342322ce84941c03764d425d666b003bc4de (patch)
tree4514031d8e04e46c0ecec0e1948cea62fecd7fba /libavcodec/cyuv.c
parent1a91f1a0da16821db6b1789b90ead0f2108ee24f (diff)
cosmetics: correct formatting a bit
Originally committed as revision 20912 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cyuv.c')
-rw-r--r--libavcodec/cyuv.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/libavcodec/cyuv.c b/libavcodec/cyuv.c
index 41be0c661b..d137dbd168 100644
--- a/libavcodec/cyuv.c
+++ b/libavcodec/cyuv.c
@@ -87,21 +87,20 @@ static int cyuv_decode_frame(AVCodecContext *avctx,
* of 4 pixels. Thus, the total size of the buffer ought to be:
* (3 * 16) + height * (width * 3 / 4) */
if (buf_size != 48 + s->height * (s->width * 3 / 4)) {
- av_log(avctx, AV_LOG_ERROR, "ffmpeg: cyuv: got a buffer with %d bytes when %d were expected\n",
- buf_size,
- 48 + s->height * (s->width * 3 / 4));
- return -1;
+ av_log(avctx, AV_LOG_ERROR, "ffmpeg: cyuv: got a buffer with %d bytes when %d were expected\n",
+ buf_size, 48 + s->height * (s->width * 3 / 4));
+ return -1;
}
/* pixel data starts 48 bytes in, after 3x16-byte tables */
stream_ptr = 48;
- if(s->frame.data[0])
+ if (s->frame.data[0])
avctx->release_buffer(avctx, &s->frame);
s->frame.buffer_hints = FF_BUFFER_HINTS_VALID;
s->frame.reference = 0;
- if(avctx->get_buffer(avctx, &s->frame) < 0) {
+ if (avctx->get_buffer(avctx, &s->frame) < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
return -1;
}