diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-11-09 10:05:22 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-11-16 12:44:20 +0100 |
commit | 5b9c3b4505206143d85398c1410949319fa1180f (patch) | |
tree | e947d3ad720f3442712d5bf8d59e073243b75f04 /libavformat | |
parent | 2ff302cb6ba1f159905888026c8a1d7dd8319acf (diff) | |
download | ffmpeg-streaming-5b9c3b4505206143d85398c1410949319fa1180f.zip ffmpeg-streaming-5b9c3b4505206143d85398c1410949319fa1180f.tar.gz |
Replace all instances of avcodec_alloc_frame() with av_frame_alloc().
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/output-example.c | 4 | ||||
-rw-r--r-- | libavformat/utils.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/output-example.c b/libavformat/output-example.c index 496b7f8..eb8cb7d 100644 --- a/libavformat/output-example.c +++ b/libavformat/output-example.c @@ -138,7 +138,7 @@ static void write_audio_frame(AVFormatContext *oc, AVStream *st) { AVCodecContext *c; AVPacket pkt = { 0 }; // data and size must be 0; - AVFrame *frame = avcodec_alloc_frame(); + AVFrame *frame = av_frame_alloc(); int got_packet; av_init_packet(&pkt); @@ -237,7 +237,7 @@ static AVFrame *alloc_picture(enum AVPixelFormat pix_fmt, int width, int height) uint8_t *picture_buf; int size; - picture = avcodec_alloc_frame(); + picture = av_frame_alloc(); if (!picture) return NULL; size = avpicture_get_size(pix_fmt, width, height); diff --git a/libavformat/utils.c b/libavformat/utils.c index 6193d32..377fdd9 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1928,7 +1928,7 @@ static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **option { const AVCodec *codec; int got_picture = 1, ret = 0; - AVFrame *frame = avcodec_alloc_frame(); + AVFrame *frame = av_frame_alloc(); AVPacket pkt = *avpkt; if (!frame) |