[FFmpeg-devel] [PATCH]Recognize
Carl Eugen Hoyos
cehoyos at ag.or.at
Fri Nov 2 20:21:14 CET 2012
Michael Niedermayer <michaelni <at> gmx.at> writes:
> > > //Read QT version 1 fields. In version 0 these do not exist.
> > > av_dlog(c->fc, "version =%d, isom =%d\n",version,c->isom);
> > > - if (!c->isom) {
> > > + if (!c->isom ||
> > > + strstr(av_dict_get(c->fc->metadata, "compatible_brands",
NULL, AV_DICT_MATCH_CASE)->value,
> "qt ")) {
> > > if (version==1) {
> > > sc->samples_per_frame = avio_rb32(pb);
> > > avio_rb32(pb); /* bytes per packet */
> >
> > Might be ok.
>
> Is this special case specific to this use of isom or could isom
> itself be changed based on the existence of qt in compatible_brands
> ?
You mean like my original patch (with strstr)?
Or do I misunderstand?
Carl Eugen
More information about the ffmpeg-devel
mailing list