History

lavf: remove an unneeded call to avcodec_get_frame_defaults().

avcodec_decode_*() resets the frame itself.

Anton Khirnov committed 12 years ago

Commit 281a40e1 parent 2d1f4281 file · +0 −1Browse files

Unified · Split

libavformat/utils.c+0−1
@@ -1973,7 +1973,6 @@ static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **option · 1972 unmodified lines
19731973 !has_decode_delay_been_guessed(st) ||
19741974 (!st->codec_info_nb_frames && st->codec->codec->capabilities & CODEC_CAP_CHANNEL_CONF))) {
19751975 got_picture = 0;
1976− avcodec_get_frame_defaults(frame);
19771976 switch(st->codec->codec_type) {
19781977 case AVMEDIA_TYPE_VIDEO:
19791978 ret = avcodec_decode_video2(st->codec, frame,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t