summaryrefslogtreecommitdiff
path: root/libavcodec/cyuv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/cyuv.c')
-rw-r--r--libavcodec/cyuv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/cyuv.c b/libavcodec/cyuv.c
index df0a2d206b..74c10777c1 100644
--- a/libavcodec/cyuv.c
+++ b/libavcodec/cyuv.c
@@ -93,9 +93,9 @@ 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)) {
- avctx->pix_fmt = PIX_FMT_YUV411P;
+ avctx->pix_fmt = AV_PIX_FMT_YUV411P;
} else if(buf_size == rawsize ) {
- avctx->pix_fmt = PIX_FMT_UYVY422;
+ avctx->pix_fmt = AV_PIX_FMT_UYVY422;
} else {
av_log(avctx, AV_LOG_ERROR, "got a buffer with %d bytes when %d were expected\n",
buf_size, 48 + s->height * (s->width * 3 / 4));