Merge commit 'eb891b3114f499e96b9faddd0b0ae856345dfbd9'

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

Conflicts:
	doc/examples/decoding_encoding.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
pull/51/head
Michael Niedermayer 11 years ago
commit 4cbf3eb9e6
  1. 8
      doc/examples/decoding_encoding.c
  2. 2
      doc/examples/muxing.c
  3. 2
      ffmpeg.c
  4. 2
      libavformat/utils.c

@ -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)
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)
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)
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)
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)
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
ret = -1; ret = -1;
fail: fail:
avcodec_free_frame(&frame); av_frame_free(&frame);
return ret; return ret;
} }

Loading…
Cancel
Save