James Almer
591b88e678
avformat: move AVStream.{first,cur}_dts to AVStreamInternal
...
They are private fields, no reason to have them exposed in a public header.
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Michael Niedermayer
3e44bd068f
avformat/fifo: check for flushed packets and timeshift
...
Fixes: CID1464151 Dereference after null check
Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years ago
Andreas Rheinhardt
bc70684e74
avformat: Constify all muxer/demuxers
...
This is possible now that the next-API is gone.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Andreas Rheinhardt
56450a0ee4
avformat: Constify the API wrt AV(In|Out)putFormat
...
Also constify AVProbeData.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Marton Balint
81975cd24b
avformat/fifo: add timeshift option to delay output
...
Signed-off-by: Marton Balint <cus@passwd.hu>
5 years ago
Andreas Rheinhardt
3362330741
ffplay, avcodec, avformat: Don't initialize before av_packet_ref()
...
It already initializes the packet.
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Marton Balint
f20bdbff6d
avformat/fifo: use AV_OPT_TYPE_DICT for format_opts
...
Signed-off-by: Marton Balint <cus@passwd.hu>
5 years ago
Carl Eugen Hoyos
9461e4bc69
lavf: Constify AVOutputFormat pointer.
6 years ago
Marton Balint
18ac642359
avformat: migrate to AVFormatContext->url
...
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years ago
Jan Sebechlebsky
5c9dcd5c48
libavformat/fifo: Fix initialization of underlying AVFormatContext
...
Muxers may want to directly access filename in stored in
AVFormatContext. For example in case of RTSP, the filename (url)
is used by the muxer to extract parameters of the connection.
These muxers will fail when used with fifo pseudo-muxer.
This commit fixes this issue by passing filename from AVFormatContext
of fifo pseudo-muxer to all AVFormatContext(s) of underlying muxers
during initialization.
Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
8 years ago
Marton Balint
8985e4af2b
avformat/fifo: assert on disallowed message type and state combinations
...
Fixes Coverity CID 1396277.
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years ago
Marton Balint
e20e9b9033
lavf/fifo: fix undefined behaviour in deinit when destroying mutex
...
Reviewed-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years ago
Jan Sebechlebsky
92b5f8fecd
avformat: Add fifo pseudo-muxer
...
Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years ago