mpenkov / ffmpeg-tutorial

A set of tutorials that demonstrates how to write a video player based on FFmpeg
http://www.ffmpeg.org/documentation.html
1.22k stars 395 forks source link

AVCODEC_MAX_AUDIO_FRAME_SIZE macro undeclared #13

Closed pprahul closed 11 years ago

pprahul commented 11 years ago

AVCODEC_MAX_AUDIO_FRAME_SIZE macro seems to be taken off from the latest ffmpeg build. I replaced it with a constant 192000 (suggestions seen elsewhere). Is there any other way this can be handled?

http://ffmpeg.org/doxygen/0.6/avcodec_8h.html#d18c27288ee5928bfb77fb2aead28c7e

ghost commented 11 years ago

I don't think so. The ffmpeg developers themselves use that value instead of AVCODEC_MAX_AUDIO_FRAME_SIZE (for example, http://ffmpeg.org/pipermail/ffmpeg-cvslog/2012-August/053785.html).

I'll update the tutorials to do the same thing. Thank you for pointing this issue out.