1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Replace all uses of avcodec_free_frame with av_frame_free().

This commit is contained in:
Anton Khirnov 2013-11-29 21:41:52 +01:00
parent 17a10d51b8
commit eb891b3114
5 changed files with 8 additions and 8 deletions

View File

@ -182,7 +182,7 @@ static void avconv_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);

View File

@ -2152,7 +2152,7 @@ static void stream_component_close(VideoState *is, int stream_index)
avresample_free(&is->avr);
av_freep(&is->audio_buf1);
is->audio_buf = NULL;
avcodec_free_frame(&is->frame);
av_frame_free(&is->frame);
if (is->rdft) {
av_rdft_end(is->rdft);

View File

@ -163,7 +163,7 @@ static void write_audio_frame(AVFormatContext *oc, AVStream *st)
fprintf(stderr, "Error while writing audio frame\n");
exit(1);
}
avcodec_free_frame(&frame);
av_frame_free(&frame);
}
static void close_audio(AVFormatContext *oc, AVStream *st)

View File

@ -212,7 +212,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);
}
@ -308,7 +308,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);
}
/*
@ -432,7 +432,7 @@ static void video_encode_example(const char *filename)
avcodec_close(c);
av_free(c);
av_freep(&picture->data[0]);
avcodec_free_frame(&picture);
av_frame_free(&picture);
printf("\n");
}
@ -568,7 +568,7 @@ static void video_decode_example(const char *outfilename, const char *filename)
avcodec_close(c);
av_free(c);
avcodec_free_frame(&picture);
av_frame_free(&picture);
printf("\n");
}

View File

@ -1995,7 +1995,7 @@ static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **option
}
fail:
avcodec_free_frame(&frame);
av_frame_free(&frame);
return ret;
}