Replace remaining occurances of av_free_packet with av_packet_unref
This commit is contained in:
@@ -95,7 +95,7 @@ int ff_load_image(uint8_t *data[4], int linesize[4],
|
||||
av_image_copy(data, linesize, (const uint8_t **)frame->data, frame->linesize, *pix_fmt, *w, *h);
|
||||
|
||||
end:
|
||||
av_free_packet(&pkt);
|
||||
av_packet_unref(&pkt);
|
||||
avcodec_close(codec_ctx);
|
||||
avformat_close_input(&format_ctx);
|
||||
av_frame_free(&frame);
|
||||
|
||||
Reference in New Issue
Block a user