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) ...@@ -227,7 +227,7 @@ static void audio_encode_example(const char *filename)
fclose(f); fclose(f);
av_freep(&samples); av_freep(&samples);
avcodec_free_frame(&frame); av_frame_free(&frame);
avcodec_close(c); avcodec_close(c);
av_free(c); av_free(c);
} }
...@@ -329,7 +329,7 @@ static void audio_decode_example(const char *outfilename, const char *filename) ...@@ -329,7 +329,7 @@ static void audio_decode_example(const char *outfilename, const char *filename)
avcodec_close(c); avcodec_close(c);
av_free(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) ...@@ -467,7 +467,7 @@ static void video_encode_example(const char *filename, int codec_id)
avcodec_close(c); avcodec_close(c);
av_free(c); av_free(c);
av_freep(&frame->data[0]); av_freep(&frame->data[0]);
avcodec_free_frame(&frame); av_frame_free(&frame);
printf("\n"); printf("\n");
} }
...@@ -609,7 +609,7 @@ static void video_decode_example(const char *outfilename, const char *filename) ...@@ -609,7 +609,7 @@ static void video_decode_example(const char *outfilename, const char *filename)
avcodec_close(c); avcodec_close(c);
av_free(c); av_free(c);
avcodec_free_frame(&frame); av_frame_free(&frame);
printf("\n"); printf("\n");
} }
......
...@@ -280,7 +280,7 @@ static void write_audio_frame(AVFormatContext *oc, AVStream *st) ...@@ -280,7 +280,7 @@ static void write_audio_frame(AVFormatContext *oc, AVStream *st)
av_err2str(ret)); av_err2str(ret));
exit(1); exit(1);
} }
avcodec_free_frame(&frame); av_frame_free(&frame);
} }
static void close_audio(AVFormatContext *oc, AVStream *st) static void close_audio(AVFormatContext *oc, AVStream *st)
......
...@@ -468,7 +468,7 @@ static void ffmpeg_cleanup(int ret) ...@@ -468,7 +468,7 @@ static void ffmpeg_cleanup(int ret)
bsfc = next; bsfc = next;
} }
output_streams[i]->bitstream_filters = NULL; 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); av_parser_close(output_streams[i]->parser);
......
...@@ -2533,7 +2533,7 @@ static int try_decode_frame(AVFormatContext *s, AVStream *st, AVPacket *avpkt, A ...@@ -2533,7 +2533,7 @@ static int try_decode_frame(AVFormatContext *s, AVStream *st, AVPacket *avpkt, A
ret = -1; ret = -1;
fail: fail:
avcodec_free_frame(&frame); av_frame_free(&frame);
return ret; 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