avcodec_decode_*() resets the frame itself.
Unified · Split
| @@ -1973,7 +1973,6 @@ static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **option · 1972 unmodified lines | ||
| 1973 | 1973 | !has_decode_delay_been_guessed(st) || |
| 1974 | 1974 | (!st->codec_info_nb_frames && st->codec->codec->capabilities & CODEC_CAP_CHANNEL_CONF))) { |
| 1975 | 1975 | got_picture = 0; |
| 1976 | − avcodec_get_frame_defaults(frame); | |
| 1977 | 1976 | switch(st->codec->codec_type) { |
| 1978 | 1977 | case AVMEDIA_TYPE_VIDEO: |
| 1979 | 1978 | ret = avcodec_decode_video2(st->codec, frame, |