You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
matroskadec: fix SRT subtitle duration
The codec id for SRT was changed and conditionals were not updated.
This commit is contained in:
@@ -2439,11 +2439,11 @@ static int matroska_parse_frame(MatroskaDemuxContext *matroska,
|
|||||||
else
|
else
|
||||||
pkt->pts = timecode;
|
pkt->pts = timecode;
|
||||||
pkt->pos = pos;
|
pkt->pos = pos;
|
||||||
if (track->type != MATROSKA_TRACK_TYPE_SUBTITLE || st->codecpar->codec_id == AV_CODEC_ID_TEXT)
|
if (track->type != MATROSKA_TRACK_TYPE_SUBTITLE || st->codecpar->codec_id == AV_CODEC_ID_SRT)
|
||||||
pkt->duration = duration;
|
pkt->duration = duration;
|
||||||
#if FF_API_CONVERGENCE_DURATION
|
#if FF_API_CONVERGENCE_DURATION
|
||||||
FF_DISABLE_DEPRECATION_WARNINGS
|
FF_DISABLE_DEPRECATION_WARNINGS
|
||||||
if (st->codecpar->codec_id == AV_CODEC_ID_TEXT)
|
if (st->codecpar->codec_id == AV_CODEC_ID_SRT)
|
||||||
pkt->convergence_duration = duration;
|
pkt->convergence_duration = duration;
|
||||||
FF_ENABLE_DEPRECATION_WARNINGS
|
FF_ENABLE_DEPRECATION_WARNINGS
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user