[FFmpeg-cvslog] Support new ALAC magic cookie in caf files.
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Thu Nov 3 20:02:46 CET 2011
On Thu, Nov 03, 2011 at 06:57:41PM +0000, Carl Eugen Hoyos wrote:
> Reimar Döffinger <Reimar.Doeffinger <at> gmx.de> writes:
>
> > On Thu, Nov 03, 2011 at 02:43:49PM +0100, Carl Eugen Hoyos wrote:
> > > + strcpy(st->codec->extradata, "\0\0\0\24alac");
> >
> > I can't see how strcpy can work with a string that start with 0.
>
> I wonder what I tested;-)
> What about memcpy(st->codec->extradata, "\0\0\0\24alac", 8);?
I guess that should work, but if the previous code didn't fail
I'd be quite suspicious that it actually makes sense at all..
More information about the ffmpeg-cvslog
mailing list