Replace remaining occurances of av_free_packet with av_packet_unref

This commit is contained in:
Hendrik Leppkes 2015-10-27 14:35:30 +01:00
parent 7f5af80ba4
commit c2f861ca42
59 changed files with 99 additions and 99 deletions

View file

@ -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);