Skip to content

Commit

Permalink
Dear @FFmpeg, could you please create a stable public API for v3.0?
Browse files Browse the repository at this point in the history
Rewriting working code on a monthly basis because library functions get
renamed for no apparent reason is not fun for us downstream devs.
Thank you. Fixes #11
  • Loading branch information
nextghost committed Nov 4, 2014
1 parent abf4434 commit 3c1f90f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lavfmuxer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ extern "C" {
#define av_alloc_format_context avformat_alloc_context
#define CODEC_TYPE_AUDIO AVMEDIA_TYPE_AUDIO

#if LIBAVCODEC_VERSION_INT < ((55<<16)+(45<<8)+101)
#define av_frame_alloc avcodec_alloc_frame
#define av_frame_free avcodec_free_frame
#endif

int decode_audio3(AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr, AVPacket *avpkt) {
AVFrame *frame = av_frame_alloc();
int ret, got_frame = 0;
Expand Down

0 comments on commit 3c1f90f

Please sign in to comment.