[FFmpeg-devel] [PATCH 2/2] mpeg12dec: BW10 support

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Jan 14 13:20:08 CET 2012


On Fri, Jan 13, 2012 at 11:55:07PM +0100, Michael Niedermayer wrote:
> On Fri, Jan 13, 2012 at 08:46:42PM +0100, Reimar Döffinger wrote:
> > On Fri, Jan 13, 2012 at 05:57:30AM +0100, Michael Niedermayer wrote:
> > > @@ -2268,7 +2273,10 @@ static int mpeg_decode_frame(AVCodecContext *avctx,
> > >              return buf_size;
> > >      }
> > >  
> > > -    if (s->mpeg_enc_ctx_allocated == 0 && avctx->codec_tag == AV_RL32("VCR2"))
> > > +    s2->codec_tag = avpriv_toupper4(avctx->codec_tag);
> > 
> > IMO this needs some explaining comment, particularly since riff.c
> > contains only the uppercase variant, so how would a lowercase one
> > end up here?
> 
> this uppercasing is done for all mpegvideo codecs in MPV_common_init()
> but that is called from, vcr2_init_sequence()
> it seemed to make sense for sake of consistency to do it the same way
> here ...

Well, probably, but then if I'm pedantic it does not really belong
into this patch but is rather unrelated?


More information about the ffmpeg-devel mailing list