mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-21 20:28:36 +00:00
Replace remaining occurances of av_free_packet with av_packet_unref
This commit is contained in:
parent
7f5af80ba4
commit
c2f861ca42
59 changed files with 99 additions and 99 deletions
|
@ -536,7 +536,7 @@ int main(int argc, char **argv)
|
|||
if (ret < 0)
|
||||
goto end;
|
||||
}
|
||||
av_free_packet(&packet);
|
||||
av_packet_unref(&packet);
|
||||
}
|
||||
|
||||
/* flush filters and encoders */
|
||||
|
@ -560,7 +560,7 @@ int main(int argc, char **argv)
|
|||
|
||||
av_write_trailer(ofmt_ctx);
|
||||
end:
|
||||
av_free_packet(&packet);
|
||||
av_packet_unref(&packet);
|
||||
av_frame_free(&frame);
|
||||
for (i = 0; i < ifmt_ctx->nb_streams; i++) {
|
||||
avcodec_close(ifmt_ctx->streams[i]->codec);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue