Mercurial > libavcodec.hg
diff raw.c @ 2341:d9c9b42767da libavcodec
fix image stream copy
author | michael |
---|---|
date | Mon, 08 Nov 2004 23:36:32 +0000 |
parents | 10d28761f78c |
children | 24d3a50d1b8b |
line wrap: on
line diff
--- a/raw.c Sat Nov 06 19:11:34 2004 +0000 +++ b/raw.c Mon Nov 08 23:36:32 2004 +0000 @@ -64,7 +64,7 @@ return PIX_FMT_YUV420P; } -static unsigned int findFourCC(int fmt) +unsigned int avcodec_pix_fmt_to_codec_tag(enum PixelFormat fmt) { const PixelFormatTag * tags = pixelFormatTags; while (tags->pix_fmt >= 0) { @@ -152,7 +152,7 @@ avctx->coded_frame->pict_type = FF_I_TYPE; avctx->coded_frame->key_frame = 1; if(!avctx->codec_tag) - avctx->codec_tag = findFourCC(avctx->pix_fmt); + avctx->codec_tag = avcodec_pix_fmt_to_codec_tag(avctx->pix_fmt); return 0; }