History

Merge commit 'ce70f28a1732c74a9cd7fec2d56178750bd6e457'

* commit 'ce70f28a1732c74a9cd7fec2d56178750bd6e457': avpacket: Replace av_free_packet with av_packet_unref

Hendrik Leppkes committed 11 years ago

Commit 7f5af802 parents 856b19d ce70f2873 files · +154 −138Browse files

Showing the changes to doc/examples/decoding_encoding.c (1 of 73 files). Show all

Unified · Split

doc/examples/decoding_encoding.c+3−3
@@ -225,7 +225,7 @@ static void audio_encode_example(const char *filename) · 224 unmodified lines
225225
226226 if (got_output) {
227227 fwrite(pkt.data, 1, pkt.size, f);
228− av_free_packet(&pkt);
228+ av_packet_unref(&pkt);
229229 }
230230 }
231231 fclose(f);
@@ -454,7 +454,7 @@ static void video_encode_example(const char *filename, int codec_id) · 222 unmodified lines
454454 if (got_output) {
455455 printf("Write frame %3d (size=%5d)\n", i, pkt.size);
456456 fwrite(pkt.data, 1, pkt.size, f);
457− av_free_packet(&pkt);
457+ av_packet_unref(&pkt);
458458 }
459459 }
460460
@@ -471,7 +471,7 @@ static void video_encode_example(const char *filename, int codec_id) · 10 unmodified lines
471471 if (got_output) {
472472 printf("Write frame %3d (size=%5d)\n", i, pkt.size);
473473 fwrite(pkt.data, 1, pkt.size, f);
474− av_free_packet(&pkt);
474+ av_packet_unref(&pkt);
475475 }
476476 }
477477

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t