Mercurial > libavcodec.hg
comparison cyuv.c @ 10705:126c0fef9167 libavcodec
There is no need to print FFmpeg or codec name in error message
author | kostya |
---|---|
date | Wed, 23 Dec 2009 09:10:40 +0000 |
parents | 72ff59e42756 |
children | 29d5a7712fb9 |
comparison
equal
deleted
inserted
replaced
10704:72ff59e42756 | 10705:126c0fef9167 |
---|---|
85 /* sanity check the buffer size: A buffer has 3x16-bytes tables | 85 /* sanity check the buffer size: A buffer has 3x16-bytes tables |
86 * followed by (height) lines each with 3 bytes to represent groups | 86 * followed by (height) lines each with 3 bytes to represent groups |
87 * of 4 pixels. Thus, the total size of the buffer ought to be: | 87 * of 4 pixels. Thus, the total size of the buffer ought to be: |
88 * (3 * 16) + height * (width * 3 / 4) */ | 88 * (3 * 16) + height * (width * 3 / 4) */ |
89 if (buf_size != 48 + s->height * (s->width * 3 / 4)) { | 89 if (buf_size != 48 + s->height * (s->width * 3 / 4)) { |
90 av_log(avctx, AV_LOG_ERROR, "ffmpeg: cyuv: got a buffer with %d bytes when %d were expected\n", | 90 av_log(avctx, AV_LOG_ERROR, "got a buffer with %d bytes when %d were expected\n", |
91 buf_size, 48 + s->height * (s->width * 3 / 4)); | 91 buf_size, 48 + s->height * (s->width * 3 / 4)); |
92 return -1; | 92 return -1; |
93 } | 93 } |
94 | 94 |
95 /* pixel data starts 48 bytes in, after 3x16-byte tables */ | 95 /* pixel data starts 48 bytes in, after 3x16-byte tables */ |