You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
avdevice/libcdio: fix AVStream.cur_dts usage
It should not be accessed from outside of libavformat. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -118,9 +118,6 @@ static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
|
|||||||
uint16_t *buf;
|
uint16_t *buf;
|
||||||
char *err = NULL;
|
char *err = NULL;
|
||||||
|
|
||||||
if (ctx->streams[0]->cur_dts > s->last_sector)
|
|
||||||
return AVERROR_EOF;
|
|
||||||
|
|
||||||
buf = cdio_paranoia_read(s->paranoia, NULL);
|
buf = cdio_paranoia_read(s->paranoia, NULL);
|
||||||
if (!buf)
|
if (!buf)
|
||||||
return AVERROR_EOF;
|
return AVERROR_EOF;
|
||||||
@@ -157,7 +154,7 @@ static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp,
|
|||||||
AVStream *st = ctx->streams[0];
|
AVStream *st = ctx->streams[0];
|
||||||
|
|
||||||
cdio_paranoia_seek(s->paranoia, timestamp, SEEK_SET);
|
cdio_paranoia_seek(s->paranoia, timestamp, SEEK_SET);
|
||||||
st->cur_dts = timestamp;
|
avpriv_update_cur_dts(ctx, st, timestamp);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user