Skip to content

Commit

Permalink
Fix a trivial deprecation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsieurDart committed May 1, 2014
1 parent e9bb3a4 commit 1c7a4c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kxmovie/KxMovieDecoder.m
Original file line number Diff line number Diff line change
Expand Up @@ -841,8 +841,8 @@ - (kxMovieError) openVideoStream: (NSInteger) videoStream
if (avcodec_open2(codecCtx, codec, NULL) < 0)
return kxMovieErrorOpenCodec;

_videoFrame = avcodec_alloc_frame();
_videoFrame = av_frame_alloc();

if (!_videoFrame) {
avcodec_close(codecCtx);
return kxMovieErrorAllocateFrame;
Expand Down Expand Up @@ -918,7 +918,8 @@ - (kxMovieError) openAudioStream: (NSInteger) audioStream
}
}

_audioFrame = avcodec_alloc_frame();
_audioFrame = av_frame_alloc();

if (!_audioFrame) {
if (swrContext)
swr_free(&swrContext);
Expand Down

0 comments on commit 1c7a4c7

Please sign in to comment.