fix possible memleak

Origin commit data
------------------
Branch: master
Commit: 03446f4122
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-11-17 (Fri, 17 Nov 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2017-11-17 16:20:42 +01:00
parent c1789596a9
commit ad9f395212

View File

@@ -224,9 +224,9 @@ int decode_frame(AVCodecContext *codecContext,AVPacket &packet, FILE* fp)
sws_freeContext(convert);
}
write_frame(dest_frame, fp);
av_frame_free(&frame);
av_frame_free(&dest_frame);
}
av_frame_free(&frame);
}
return 0;