[FFmpeg-devel] Flac Sample Format

Goo Creations goocreations at gmail.com
Tue Apr 24 14:31:22 CEST 2012


Sorry for this

On Tue, Apr 24, 2012 at 2:29 PM, Nicolas George <
nicolas.george at normalesup.org> wrote:

> 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.
>
> Regards,
>
> --
>  Nicolas George
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
>
> iEYEARECAAYFAk+WnKwACgkQsGPZlzblTJNmhQCfV93EJ6ikue/0SOWBxiDkolDi
> xuwAn2dh12qRmscICnvIcMmYPwIMnF5b
> =UhZo
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
>


More information about the ffmpeg-devel mailing list