mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-24 05:29:17 +00:00
Merge commit 'ce70f28a17
'
* commit 'ce70f28a17
':
avpacket: Replace av_free_packet with av_packet_unref
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
commit
7f5af80ba4
73 changed files with 154 additions and 138 deletions
|
@ -225,7 +225,7 @@ static void audio_encode_example(const char *filename)
|
|||
|
||||
if (got_output) {
|
||||
fwrite(pkt.data, 1, pkt.size, f);
|
||||
av_free_packet(&pkt);
|
||||
av_packet_unref(&pkt);
|
||||
}
|
||||
}
|
||||
fclose(f);
|
||||
|
@ -454,7 +454,7 @@ static void video_encode_example(const char *filename, int codec_id)
|
|||
if (got_output) {
|
||||
printf("Write frame %3d (size=%5d)\n", i, pkt.size);
|
||||
fwrite(pkt.data, 1, pkt.size, f);
|
||||
av_free_packet(&pkt);
|
||||
av_packet_unref(&pkt);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -471,7 +471,7 @@ static void video_encode_example(const char *filename, int codec_id)
|
|||
if (got_output) {
|
||||
printf("Write frame %3d (size=%5d)\n", i, pkt.size);
|
||||
fwrite(pkt.data, 1, pkt.size, f);
|
||||
av_free_packet(&pkt);
|
||||
av_packet_unref(&pkt);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue