You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavf/dv: do not check for c->sys
dv_extract_video_info() is a static function called only from avpriv_dv_produce_packet(), where c->sys is made sure to be set.
This commit is contained in:
@@ -284,9 +284,7 @@ static int dv_extract_video_info(DVDemuxContext *c, const uint8_t *frame)
|
|||||||
const uint8_t *vsc_pack;
|
const uint8_t *vsc_pack;
|
||||||
AVCodecContext *avctx;
|
AVCodecContext *avctx;
|
||||||
int apt, is16_9;
|
int apt, is16_9;
|
||||||
int size = 0;
|
|
||||||
|
|
||||||
if (c->sys) {
|
|
||||||
avctx = c->vst->codec;
|
avctx = c->vst->codec;
|
||||||
|
|
||||||
avpriv_set_pts_info(c->vst, 64, c->sys->time_base.num,
|
avpriv_set_pts_info(c->vst, 64, c->sys->time_base.num,
|
||||||
@@ -302,9 +300,7 @@ static int dv_extract_video_info(DVDemuxContext *c, const uint8_t *frame)
|
|||||||
avctx->bit_rate = av_rescale_q(c->sys->frame_size,
|
avctx->bit_rate = av_rescale_q(c->sys->frame_size,
|
||||||
(AVRational) { 8, 1 },
|
(AVRational) { 8, 1 },
|
||||||
c->sys->time_base);
|
c->sys->time_base);
|
||||||
size = c->sys->frame_size;
|
return c->sys->frame_size;
|
||||||
}
|
|
||||||
return size;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dv_extract_timecode(DVDemuxContext* c, const uint8_t* frame, char *tc)
|
static int dv_extract_timecode(DVDemuxContext* c, const uint8_t* frame, char *tc)
|
||||||
|
Reference in New Issue
Block a user