mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/dv: fix used dimension variables
Fixes null pointer dereference during seeking Fixes Ticket4395 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
df43d03731
commit
2139e58439
@ -422,7 +422,7 @@ static int64_t dv_frame_offset(AVFormatContext *s, DVDemuxContext *c,
|
||||
int64_t timestamp, int flags)
|
||||
{
|
||||
// FIXME: sys may be wrong if last dv_read_packet() failed (buffer is junk)
|
||||
const AVDVProfile *sys = av_dv_codec_profile2(c->vst->codec->width, c->vst->codec->height,
|
||||
const AVDVProfile *sys = av_dv_codec_profile2(c->vst->codec->coded_width, c->vst->codec->coded_height,
|
||||
c->vst->codec->pix_fmt, c->vst->codec->time_base);
|
||||
int64_t offset;
|
||||
int64_t size = avio_size(s->pb) - s->internal->data_offset;
|
||||
|
Loading…
Reference in New Issue
Block a user