Showing the changes to doc/examples/decoding_encoding.c (1 of 59 files). Show all
Unified · Split
| @@ -211,7 +211,7 @@ static void audio_encode_example(const char *filename) · 210 unmodified lines | |||
| 211 | } | 211 | } |
| 212 | if (got_output) { | 212 | if (got_output) { |
| 213 | fwrite(pkt.data, 1, pkt.size, f); | 213 | fwrite(pkt.data, 1, pkt.size, f); |
| 214 | av_free_packet(&pkt); | 214 | av_packet_unref(&pkt); |
| 215 | } | 215 | } |
| 216 | } | 216 | } |
| 217 | 217 | ||