[FFmpeg-devel] Audio API Question

Justin Ruggles justin.ruggles
Sun Sep 12 22:30:27 CEST 2010


So I want to change audio encoding to handle PCM audio the same way
other codecs are handled.  But I'm not quite sure how to go about it as
far as the API goes.  I could create a new function, even though the
parameters would be the same.  But the only way I can think of to
provide backwards compatibility for PCM codecs would be for the wrapper
function to change AVCodecContext->frame_size in every call based on the
buffer size, then change it back to the original value before returning.
 That just seems pretty sketchy to me.  Any other ideas?


More information about the ffmpeg-devel mailing list