>
> > [libvorbis @ 028b1520] more samples than frame size
> > (avcodec_encode_audio2)
>
> Are you sure that you are encoding to flac?
>
>
You were spot on. I was using "test.ogg" instead of "test.flac".
I made the following changes and now it works fine.
- audio_decode_example("test.ogg", "test.sdp");
+ audio_decode_example("test.flac", "test.sdp");
- outCodecCtx->sample_fmt = AV_SAMPLE_FMT_FLTP;
+ outCodecCtx->sample_fmt = AV_SAMPLE_FMT_S16; // FLAC uses fixed
point samples
Thanks!
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user