Bink: free sws context when destroying a movie
This commit is contained in:
parent
e6a01e2379
commit
1f5fc9343a
1 changed files with 4 additions and 1 deletions
|
@ -94,8 +94,11 @@ static void BinkReleaseMovie(struct binkMovie* aMovie)
|
||||||
avcodec_free_context(&aMovie->videoCodecContext);
|
avcodec_free_context(&aMovie->videoCodecContext);
|
||||||
if (aMovie->videoFrame)
|
if (aMovie->videoFrame)
|
||||||
av_frame_free(&aMovie->videoFrame);
|
av_frame_free(&aMovie->videoFrame);
|
||||||
if (aMovie->videoScaleContext)
|
|
||||||
|
if (aMovie->videoScaleContext) {
|
||||||
|
sws_freeContext(aMovie->videoScaleContext);
|
||||||
av_freep(&aMovie->videoScalePicture[0]);
|
av_freep(&aMovie->videoScalePicture[0]);
|
||||||
|
}
|
||||||
|
|
||||||
BinkInitMovieStruct(aMovie);
|
BinkInitMovieStruct(aMovie);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue