[Ffmpeg-devel] [PATCH] DVR-MS probe audio format - was DVR-MS bug (MP2 decoding)

John Donaghy johnfdonaghy
Sat Mar 31 16:43:13 CEST 2007


> hmm uhm, i hate dvr-ms


I pretty much feel that way myself at this point but it wouldnt be so bad if
there was decent documentation available. Anyway there's a lot of people out
there wanting the ability to convert them so I feel it's worth this last
push.

try av_read_frame_flush() after the codec is detected
> and try av_seek_frame() to get back to the start
> this is of course dirty and iam not happy about it but i dont see an easy
> alternative, that is if this fixes it at all ...


This appears to work as long as I also reset st->need_parsing to 1

I believe I can also just flush without seeking back to the start with
almost no data loss. Is that acceptable or would you prefer that I include
the seek as well?

In fact, now that I reset st->need_parsing I dont even really need to flush
- I just get one or two of these messages:
[mp3 @ 006F2F40]incorrect frame size

and then it recovers.

So do you want me to flush the stream and if so, should I also seek back to
the start?

John

[...]
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> I have never wished to cater to the crowd; for what I know they do not
> approve, and what they approve I do not know. -- Epicurus
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>
>




More information about the ffmpeg-devel mailing list