summaryrefslogtreecommitdiffstats
path: root/demux/stheader.h
diff options
context:
space:
mode:
Diffstat (limited to 'demux/stheader.h')
-rw-r--r--demux/stheader.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/demux/stheader.h b/demux/stheader.h
index a0820f55b7..467d0e09a0 100644
--- a/demux/stheader.h
+++ b/demux/stheader.h
@@ -76,6 +76,11 @@ struct mp_codec_params {
// Timestamp granularity for converting double<->rational timestamps.
int native_tb_num, native_tb_den;
+ // Used by an obscure bug workaround mechanism. As an exception to the usual
+ // rules, demuxers are allowed to set this after adding the sh_stream, but
+ // only before the demuxer open call returns.
+ struct demux_packet *first_packet;
+
// STREAM_AUDIO
int samplerate;
struct mp_chmap channels;