Commit 4cbf3eb9 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'eb891b31'

* commit 'eb891b31':
  Replace all uses of avcodec_free_frame with av_frame_free().

Conflicts:
	doc/examples/decoding_encoding.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents dee6d5f5 eb891b31
......@@ -227,7 +227,7 @@ static void audio_encode_example(const char *filename)
fclose(f);
av_freep(&samples);
avcodec_free_frame(&frame);
av_frame_free(&frame);
avcodec_close(c);
av_free(c);
}
......@@ -329,7 +329,7 @@ static void audio_decode_example(const char *outfilename, const char *filename)
avcodec_close(c);
av_free(c);
avcodec_free_frame(&decoded_frame);
av_frame_free(&decoded_frame);
}
/*
......@@ -467,7 +467,7 @@ static void video_encode_example(const char *filename, int codec_id)
avcodec_close(c);
av_free(c);
av_freep(&frame->data[0]);
avcodec_free_frame(&frame);
av_frame_free(&frame);
printf("\n");
}
......@@ -609,7 +609,7 @@ static void video_decode_example(const char *outfilename, const char *filename)
avcodec_close(c);
av_free(c);
avcodec_free_frame(&frame);
av_frame_free(&frame);
printf("\n");
}
......
......@@ -280,7 +280,7 @@ static void write_audio_frame(AVFormatContext *oc, AVStream *st)
av_err2str(ret));
exit(1);
}
avcodec_free_frame(&frame);
av_frame_free(&frame);
}
static void close_audio(AVFormatContext *oc, AVStream *st)
......
......@@ -468,7 +468,7 @@ static void ffmpeg_cleanup(int ret)
bsfc = next;
}
output_streams[i]->bitstream_filters = NULL;
avcodec_free_frame(&output_streams[i]->filtered_frame);
av_frame_free(&output_streams[i]->filtered_frame);
av_parser_close(output_streams[i]->parser);
......
......@@ -2533,7 +2533,7 @@ static int try_decode_frame(AVFormatContext *s, AVStream *st, AVPacket *avpkt, A
ret = -1;
fail:
avcodec_free_frame(&frame);
av_frame_free(&frame);
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment