am7xxx-play: get rid of the deprecated function av_free_packet()
authorAntonio Ospite <ao2@ao2.it>
Thu, 30 Jun 2016 16:05:53 +0000 (18:05 +0200)
committerAntonio Ospite <ao2@ao2.it>
Thu, 30 Jun 2016 16:05:53 +0000 (18:05 +0200)
This also fixes this warning:

  warning: ‘av_free_packet’ is deprecated

examples/am7xxx-play.c

index ad2ca6f..46a91c9 100644 (file)
@@ -458,8 +458,8 @@ static int am7xxx_play(const char *input_format_string,
                }
 end_while:
                if (!output_ctx.raw_output && got_packet)
-                       av_free_packet(&out_packet);
-               av_free_packet(&in_packet);
+                       av_packet_unref(&out_packet);
+               av_packet_unref(&in_packet);
        }
 
        sws_freeContext(sw_scale_ctx);