Commit b577a54a authored by Ivan Uskov's avatar Ivan Uskov Committed by Derek Buitenhuis

qsv: Fix wrong ticks_per_frame for H.264

For H.264 stream ticks_per_frame should be 2, as per the docs.
Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parent a2ba50b0
......@@ -82,9 +82,11 @@ static av_cold int qsv_decode_init(AVCodecContext *avctx)
}
}
if (avctx->codec_id == AV_CODEC_ID_H264)
if (avctx->codec_id == AV_CODEC_ID_H264) {
s->bsf = av_bitstream_filter_init("h264_mp4toannexb");
else
//regarding ticks_per_frame description, should be 2 for h.264:
avctx->ticks_per_frame = 2;
} else
s->bsf = av_bitstream_filter_init("hevc_mp4toannexb");
if (!s->bsf) {
ret = AVERROR(ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment