mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 18:10:13 +01:00
Replace remaining occurances of av_free_packet with av_packet_unref
This commit is contained in:
@@ -143,11 +143,11 @@ static int compute_crc_of_packets(AVFormatContext *fmt_ctx, int video_stream,
|
||||
}
|
||||
}
|
||||
}
|
||||
av_free_packet(&pkt);
|
||||
av_packet_unref(&pkt);
|
||||
av_init_packet(&pkt);
|
||||
} while ((!end_of_stream || got_frame) && (no_seeking || (fr->pkt_pts + av_frame_get_pkt_duration(fr) <= ts_end)));
|
||||
|
||||
av_free_packet(&pkt);
|
||||
av_packet_unref(&pkt);
|
||||
av_freep(&byte_buffer);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user