Skip to content

Commit

Permalink
[MZ] Don't use deprecated functions for frame alloc/free.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xd34df00d committed Jan 2, 2015
1 parent a7429ab commit 307be1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/musiczombie/chroma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ namespace MusicZombie
auto remaining = maxLength * codecCtx->channels * codecCtx->sample_rate;
chromaprint_start (Ctx_, codecCtx->sample_rate, codecCtx->channels);

std::shared_ptr<AVFrame> frame (avcodec_alloc_frame (),
[] (AVFrame *frame) { avcodec_free_frame (&frame); });
std::shared_ptr<AVFrame> frame (av_frame_alloc (),
[] (AVFrame *frame) { av_frame_free (&frame); });
auto maxDstNbSamples = 0;

uint8_t *dstData [1] = { nullptr };
Expand Down

0 comments on commit 307be1d

Please sign in to comment.