mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/mxfdec: use the common packet pts setter function for opatom files
Fixes ticket #6631. Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
7f80b065a6
commit
01911b9b3c
@ -3217,15 +3217,9 @@ static int mxf_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
|
|
||||||
pkt->stream_index = st->index;
|
pkt->stream_index = st->index;
|
||||||
|
|
||||||
if (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO && t->ptses &&
|
ret = mxf_set_pts(mxf, st, pkt, next_pos);
|
||||||
mxf->current_edit_unit >= 0 && mxf->current_edit_unit < t->nb_ptses) {
|
if (ret < 0)
|
||||||
pkt->dts = mxf->current_edit_unit + t->first_dts;
|
return ret;
|
||||||
pkt->pts = t->ptses[mxf->current_edit_unit];
|
|
||||||
} else if (st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO) {
|
|
||||||
int ret = mxf_set_audio_pts(mxf, st->codecpar, pkt);
|
|
||||||
if (ret < 0)
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
mxf->current_edit_unit += edit_units;
|
mxf->current_edit_unit += edit_units;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user