Don't depend on the generic code setting this. This is in preparation for a following change.
Unified · Split
| @@ -416,6 +416,7 @@ static int mediacodec_wrap_sw_audio_buffer(AVCodecContext *avctx, · 415 unmodified lines | |||
| 416 | frame->pts = info->presentationTimeUs; | 416 | frame->pts = info->presentationTimeUs; |
| 417 | } | 417 | } |
| 418 | frame->pkt_dts = AV_NOPTS_VALUE; | 418 | frame->pkt_dts = AV_NOPTS_VALUE; |
| 419 | frame->flags |= AV_FRAME_FLAG_KEY; | ||
| 419 | 420 | ||
| 420 | av_log(avctx, AV_LOG_TRACE, | 421 | av_log(avctx, AV_LOG_TRACE, |
| 421 | "Frame: format=%d channels=%d sample_rate=%d nb_samples=%d", | 422 | "Frame: format=%d channels=%d sample_rate=%d nb_samples=%d", |