[FFmpeg-devel] [PATCH] mov.c: read fragment start dts from fragmented mp4

Mika Raento mikie at iki.fi
Thu Oct 9 07:52:33 CEST 2014


On 8 October 2014 16:15, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Wed, Oct 08, 2014 at 03:03:50PM +0200, Michael Niedermayer wrote:
> [...]
>> > @@ -3565,6 +3678,9 @@ static int mov_read_header(AVFormatContext *s)
>> >      else
>> >          atom.size = INT64_MAX;
>> >
>> > +    if (pb->seekable) {
>> > +        mov_read_mfra(s);
>> > +    }
>>
>> mov_read_mfra() requires multiple seeks, these are quite expensive if
>> the file is not local but accessed over the network.
>> Is it possible to detect (most) files which do not have mfra atoms
>> reliably without having to try to read the mfra atom so as to avoid
>> doing these potentially expensive seeks ?
>
> also mov_read_mfra() is missing a seek back to 0 / the previous
> position

Done.

>
> [...]
>
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> The real ebay dictionary, page 2
> "100% positive feedback" - "All either got their money back or didnt complain"
> "Best seller ever, very honest" - "Seller refunded buyer after failed scam"
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list