Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-06-05 17:11:36 +0300
committerJames Almer <jamrial@gmail.com>2021-06-09 19:55:25 +0300
commit39affa5f8e70fb364d197242a8c11703d593f012 (patch)
tree374f3a83b5e5e5c2ba5fd2904e57ba8dab91f83e /libavdevice/libcdio.c
parentc768233293a8ae43907d6dc3a7075a750dc12280 (diff)
avdevice/libcdio: fix AVStream.cur_dts usage
It should not be accessed from outside of libavformat. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavdevice/libcdio.c')
-rw-r--r--libavdevice/libcdio.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavdevice/libcdio.c b/libavdevice/libcdio.c
index f1a1468554..dba02d4130 100644
--- a/libavdevice/libcdio.c
+++ b/libavdevice/libcdio.c
@@ -118,9 +118,6 @@ static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
uint16_t *buf;
char *err = NULL;
- if (ctx->streams[0]->cur_dts > s->last_sector)
- return AVERROR_EOF;
-
buf = cdio_paranoia_read(s->paranoia, NULL);
if (!buf)
return AVERROR_EOF;
@@ -157,7 +154,7 @@ static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp,
AVStream *st = ctx->streams[0];
cdio_paranoia_seek(s->paranoia, timestamp, SEEK_SET);
- st->cur_dts = timestamp;
+ avpriv_update_cur_dts(ctx, st, timestamp);
return 0;
}