projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d1f428
)
lavf: remove an unneeded call to avcodec_get_frame_defaults().
author
Anton Khirnov
<anton@khirnov.net>
Mon, 9 Dec 2013 10:55:57 +0000
(11:55 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Wed, 11 Dec 2013 19:39:55 +0000
(20:39 +0100)
avcodec_decode_*() resets the frame itself.
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index 36770d9b80a74f8cef4ba4ab571714a6a0be3711..0b715e4f36458e33b40ed8fbe5d6f91721b43e5a 100644
(file)
--- 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,