mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
avformat/dv: Set AVFMTCTX_NOHEADER flag
Audio streams are only added when a packet is read. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
3022f74874
commit
2b787ef766
@ -345,6 +345,9 @@ static int dv_init_demux(AVFormatContext *s, DVDemuxContext *c)
|
|||||||
c->vst->codecpar->bit_rate = 25000000;
|
c->vst->codecpar->bit_rate = 25000000;
|
||||||
c->vst->start_time = 0;
|
c->vst->start_time = 0;
|
||||||
|
|
||||||
|
/* Audio streams are added later as they are encountered. */
|
||||||
|
s->ctx_flags |= AVFMTCTX_NOHEADER;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user