aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-12-09 11:55:57 +0100
committerAnton Khirnov <anton@khirnov.net>2013-12-11 20:39:55 +0100
commit281a40e18f923510f2067d05c5b0cf08cc49dfee (patch)
treeca1757ad4b6cc1a9698f42c1fac7cee2458d5675 /libavformat
parent2d1f4288dd02a624cb8b86ab06371d6434c9da69 (diff)
downloadffmpeg-281a40e18f923510f2067d05c5b0cf08cc49dfee.tar.gz
lavf: remove an unneeded call to avcodec_get_frame_defaults().
avcodec_decode_*() resets the frame itself.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 36770d9b80..0b715e4f36 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1973,7 +1973,6 @@ static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **option
!has_decode_delay_been_guessed(st) ||
(!st->codec_info_nb_frames && st->codec->codec->capabilities & CODEC_CAP_CHANNEL_CONF))) {
got_picture = 0;
- avcodec_get_frame_defaults(frame);
switch(st->codec->codec_type) {
case AVMEDIA_TYPE_VIDEO:
ret = avcodec_decode_video2(st->codec, frame,