[FFmpeg-devel] Flac Sample Format

Nicolas George nicolas.george at normalesup.org
Tue Apr 24 14:29:37 CEST 2012

Le sextidi 6 floréal, an CCXX, Goo Creations a écrit :
> Hi all,

Hi. This is the development mailing list. For questions about API uses,
please see libav-users at ffmpeg.org (check the spelling).

> avformat_open_input(&formatContext, "a.flac", NULL, NULL);
> int streamId = av_find_best_stream(formatContext, AVMEDIA_TYPE_AUDIO, -1,
> -1, &codec, 0);
> codecContext = formatContext->streams[streamId]->codec;

It looks like you are forgetting avformat_find_stream_info.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120424/423bb090/attachment.asc>

More information about the ffmpeg-devel mailing list