[FFmpeg-devel] [PATCH 2/5] avformat/mp3dec: use the common mechanism for skipping samples

wm4 nfxjfg at googlemail.com
Wed Apr 22 01:09:26 CEST 2015


On Wed, 22 Apr 2015 00:48:30 +0200
Michael Niedermayer <michaelni at gmx.at> wrote:

> On Tue, Apr 21, 2015 at 09:33:51PM +0200, wm4 wrote:
> > ---
> > Feel free to squash with the previous patch if it's too fine-grained.
> > ---
> >  libavformat/mp3dec.c | 7 ++-----
> >  1 file changed, 2 insertions(+), 5 deletions(-)
> 
> this breaks fate-seek-acodec-mp2
> 
> [...]

The old behavior is quite inconsistent:

- if the file has a LAME header
     - the start of the file skps at least 529 samples
     - seeking to the start also does
- if the file has no LAME hesder
     - the start of the file skips no samples
     - seeking to the start skips 529 samples

So should it skip data on the start or not? (If no LAME header.)


More information about the ffmpeg-devel mailing list