[FFmpeg-devel] [PATCH] do not set codec tag in raw video encoder

Baptiste Coudurier baptiste.coudurier
Wed Jun 9 11:47:21 CEST 2010


On 6/5/10 3:35 PM, Baptiste Coudurier wrote:
> Hi
>
> $subject, let the muxer choose the appropriate one depending on the format.
>
>
> rawenc_codec_tag.patch
>
>
> Index: libavcodec/rawenc.c
> ===================================================================
> --- libavcodec/rawenc.c	(revision 23498)
> +++ libavcodec/rawenc.c	(working copy)
> @@ -35,8 +35,6 @@
>       avctx->coded_frame->pict_type = FF_I_TYPE;
>       avctx->coded_frame->key_frame = 1;
>       avctx->bits_per_coded_sample = av_get_bits_per_pixel(&av_pix_fmt_descriptors[avctx->pix_fmt]);
> -    if(!avctx->codec_tag)
> -        avctx->codec_tag = avcodec_pix_fmt_to_codec_tag(avctx->pix_fmt);
>       return 0;
>   }
>

Any objection ?

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org



More information about the ffmpeg-devel mailing list