changeset 2166:10d28761f78c libavcodec

give the user a chance to override codec_tag
author michael
date Thu, 12 Aug 2004 23:36:48 +0000
parents 5ca07515a309
children 76334bbb5038
files raw.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/raw.c	Wed Aug 11 19:32:34 2004 +0000
+++ b/raw.c	Thu Aug 12 23:36:48 2004 +0000
@@ -151,7 +151,8 @@
     avctx->coded_frame = (AVFrame *)avctx->priv_data;
     avctx->coded_frame->pict_type = FF_I_TYPE;
     avctx->coded_frame->key_frame = 1;
-    avctx->codec_tag = findFourCC(avctx->pix_fmt);
+    if(!avctx->codec_tag)
+        avctx->codec_tag = findFourCC(avctx->pix_fmt);
     return 0;
 }