HACKING.asciidoc: update the Windows build instructions
[libam7xxx.git] / examples / am7xxx-play.c
index ad2ca6f..7bad4f7 100644 (file)
@@ -238,7 +238,7 @@ static int video_output_init(struct video_output_ctx *output_ctx,
        output_codec_ctx->qmin       = output_codec_ctx->qmax = ((100 - (quality - 1)) * FF_QUALITY_SCALE) / 100;
        output_codec_ctx->mb_lmin    = output_codec_ctx->qmin * FF_QP2LAMBDA;
        output_codec_ctx->mb_lmax    = output_codec_ctx->qmax * FF_QP2LAMBDA;
-       output_codec_ctx->flags      |= CODEC_FLAG_QSCALE;
+       output_codec_ctx->flags      |= AV_CODEC_FLAG_QSCALE;
        output_codec_ctx->global_quality = output_codec_ctx->qmin * FF_QP2LAMBDA;
 
        /* find the encoder */
@@ -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);