-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 28.09.2010 19:15, schrieb Clément Bœsch: > On Tue, Sep 28, 2010 at 06:49:37PM +0200, Jannis Achstetter wrote: >>>> When using the "decode audio"-part from the api-example.c on a normal >>>> MP3-file, I also get "Incorrect frame size"-errors/warnings. >>> >>> Does ffplay show that error/warning? If not, you're likely doing >>> something different from ffplay, and I'd suggest to work your way back >>> from there. >> >> No, ffplay does not show these warnings. I had a short look into >> ffplay.c and saw many things with SDL and video so I stopped searching >> there but I will try to find out important parts aboud audio decoding there. >> > > Look at the code I pasted a few hours ago on this m-l, and change len/2 with > audio_data/4. This code is correct, so you can base yours on.
Thanks Clément. The code looks like what I hoped to avoid: libavformat. You tell libavformat to get "one packet" that you feed to the decoder. I have buffer containing XXX byte of MP3 data and I can't (yet) tell how many frames I have in there, where one starts and ends. Nevermind, I'll read the libavformat-docs/headers and hope to find something useful there. ffplay.c is also still there to be read :) Regards -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyiJuUACgkQeYlewm37lbjDKQCfTKZnvS7Z4GopfEoCshN72dSI +OYAn2fKuIfL/HZBugewFnhNJHrlVMGV =vv94 -----END PGP SIGNATURE----- _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
