History

avcodec/mediacodecdec: set set keyframe flag in output frames

Don't depend on the generic code setting this. This is in preparation for a following change.

James Almer committed 1 year ago

Commit 8d2d2511 parent 99f87251 file · +1 −0Browse files

Unified · Split

libavcodec/mediacodecdec_common.c+1−0
@@ -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",

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