[FFmpeg-devel] [PATCH 4/4] EA cdata demuxer: support files with 20 byte header
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sat Apr 23 17:44:45 CEST 2011
On Sat, Apr 23, 2011 at 10:09:19PM +1000, Peter Ross wrote:
> ---
> libavformat/eacdata.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/libavformat/eacdata.c b/libavformat/eacdata.c
> index 1a9f3d0..cc1f833 100644
> --- a/libavformat/eacdata.c
> +++ b/libavformat/eacdata.c
> @@ -63,7 +63,7 @@ static int cdata_read_header(AVFormatContext *s, AVFormatParameters *ap)
> };
>
> sample_rate = avio_rb16(pb);
> - avio_skip(pb, 12);
> + avio_skip(pb, (avio_r8(pb) & 0x20) ? 15 : 11);
Any idea what is in those bytes?
Might allow to write this in a way that "makes more sense",
but in principle it's obviously ok as-is if it works.
More information about the ffmpeg-devel
mailing list