[FFmpeg-devel] [PATCH]Refuse to mux invalid transport streams

Michael Niedermayer michaelni at gmx.at
Mon May 20 16:55:56 CEST 2013


On Mon, May 20, 2013 at 02:33:50PM +0000, Carl Eugen Hoyos wrote:
> Michael Niedermayer <michaelni <at> gmx.at> writes:
> 
> > > +        av_log(s, AV_LOG_ERROR, "Codec %s not 
> > > supported in transport streams\n",
> > > +               avcodec_get_name(st->codec->codec_id));
> > > +        return AVERROR(EINVAL);
> > 
> > why dont you set AVOutputFormat.codec_tag
> 
> It is supposed to be set by the user.

no
    /**
     * List of supported codec_id-codec_tag pairs, ordered by "better
     * choice first". The arrays are all terminated by AV_CODEC_ID_NONE.
     */


> 
> > / querry_codec ?
> 
> I didn't know it and since it has no effect on 
> ffmpeg it wouldn't help;-(

you could add a call to it into ffmpeg (if that doesnt break anything)
or just call it from mpegtsenc.c

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are best at talking, realize last or never when they are wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130520/7326719e/attachment.asc>


More information about the ffmpeg-devel mailing list