summaryrefslogtreecommitdiff
path: root/libavcodec/mediacodecdec.c
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@stupeflix.com>2016-06-16 18:30:16 +0200
committerMatthieu Bouron <matthieu.bouron@stupeflix.com>2016-06-20 10:07:41 +0200
commit432891a96e664d6c0e99a4d5ada78a87d561c92d (patch)
treee0d9914128b2ce1c773fbbe582d7ba978a4967d3 /libavcodec/mediacodecdec.c
parentb8d754c5d0a2e99022c27bd1159ea3f597f67452 (diff)
downloadffmpeg-432891a96e664d6c0e99a4d5ada78a87d561c92d.tar.gz
lavc/mediacodecdec{,_h264}: set FF_CODEC_CAP_SETS_PKT_DTS capability
And sets frames pkt_dts to AV_NOPTS_VALUE as we do not want lavc/utils to overwrite the field with incorrect values as the decoder is asynchronous.
Diffstat (limited to 'libavcodec/mediacodecdec.c')
-rw-r--r--libavcodec/mediacodecdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c
index 0b08f02089..68df885c77 100644
--- a/libavcodec/mediacodecdec.c
+++ b/libavcodec/mediacodecdec.c
@@ -162,6 +162,7 @@ static int mediacodec_wrap_buffer(AVCodecContext *avctx,
* * N avpackets can be pushed before 1 frame is actually returned
* * 0-sized avpackets are pushed to flush remaining frames at EOS */
frame->pkt_pts = info->presentationTimeUs;
+ frame->pkt_dts = AV_NOPTS_VALUE;
av_log(avctx, AV_LOG_DEBUG,
"Frame: width=%d stride=%d height=%d slice-height=%d "