Andreas Rheinhardt
40bdd8cc05
avformat: Avoid allocation for AVStreamInternal
...
Do this by allocating AVStream together with the data that is
currently in AVStreamInternal; or rather: Put AVStream at the
beginning of a new structure called FFStream (which encompasses
more than just the internal fields and is a proper context in its own
right, hence the name) and remove AVStreamInternal altogether.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
James Almer
7489f63281
avformat: move AVStream.codec_info_nb_frames to AVStreamInternal
...
It's a private field, no reason to have it exposed in a public header.
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Andreas Rheinhardt
4796ec5d4e
avformat/dump: Remove remnants of codec timebase
...
Fixes Coverity issue #1477414 .
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
4 years ago
James Almer
3749eede66
avformat: remove deprecated AVStream.codec
...
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Andreas Rheinhardt
ef6a9e5e31
avutil/buffer: Switch AVBuffer API to size_t
...
Announced in 14040a1d91
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Andreas Rheinhardt
f0c7fa2c48
avcodec: Switch AVCPBProperties to 64bits
...
Announced in 2e8b0446c6
.
Two FATE-tests needed to be updated because the checksums of
side data containing an AVCPBProperties struct changed.
buffer_size has also been switched to 64bits because it is a bitsize.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Anton Khirnov
b7251aed46
av_dump_format(): reduce indentation for streams
...
Makes it easier to identify where metadata/chapters end and streams
begin.
4 years ago
Anton Khirnov
3696c3b161
av_dump_format(): increase indentation for chapter metadata
...
It should be at a deeper level than the chapter it belongs to.
4 years ago
Anton Khirnov
80aad8886a
av_dump_format: add a heading for chapters
...
Otherwise the chapters look like a part of the metadata section.
4 years ago
Marton Balint
9b434bea75
avformat: use av_timecode_make_smpte_tc_string2
...
WSD format has no frames stored for playback time.
Signed-off-by: Marton Balint <cus@passwd.hu>
4 years ago
Limin Wang
448a9aaa78
API: add AV_PKT_DATA_S12M_TIMECODE to AVPacketSideDataType
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
4 years ago
Limin Wang
af5751940e
avformat/dump: add a \n for end of ERROR log
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
4 years ago
Andreas Rheinhardt
e365076c10
avformat/dump: Use intermediate pointer for access to programs array
...
Improves readability.
Reviewed-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
4 years ago
Andreas Rheinhardt
0179ef7eac
avformat/dump: Use const where appropriate
...
Also switch to using a pointer to access stream side data instead of
copying the stream's AVPacketSideData.
Reviewed-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
4 years ago
Anton Khirnov
202e06870e
lavf/dump: schedule use of deprecated API for removal
5 years ago
Derek Buitenhuis
5d9ce445ef
avformat/dump: Use int64_t for intermediate time values
...
Prevents wrap-around to negative values while calculating the duration string.
Before:
Duration: -411422:-59:-42.17, start: 0.000000, bitrate: 0 kb/s
After:
Duration: 781623:28:34.17, start: 0.000000, bitrate: 0 kb/s
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
5 years ago
Jun Zhao
446dac9ccf
lavf/dump: dump DOVI side data
...
dump DOVI side data.
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
5 years ago
vectronic
05d27f342b
API: add AV_PKT_DATA_ICC_PROFILE to AVPacketSideDataType
...
Signed-off-by: vectronic <hello.vectronic@gmail.com>
5 years ago
Limin Wang
ffd65c8862
lavf/dump: dump the vbv_delay with N/A instead of 18446744073709551615
...
How to check it:
./ffmpeg -f lavfi -i testsrc -c:v mpeg2video -f null -
master:
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay:
18446744073709551615
patch applied:
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years ago
Limin Wang
df6e341b04
lavf/dump: use error log level for invalid size
...
Reviewed-by: Steven Liu <lq@onvideo.cn>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
5 years ago
Carl Eugen Hoyos
098ed8a73e
lavf/dump: Fix cpb bitrate type after next major bump.
5 years ago
Carl Eugen Hoyos
6711419569
lavf/dump: Fix vbv_delay type specifier.
...
Spotted-by: James Almer
5 years ago
Jun Zhao
be1643be31
lavf/dump: More disposition flag dump
...
More disposition flag dump
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
5 years ago
Carl Eugen Hoyos
feb05ffa99
lavf/dump: Fix a typo: comentary -> commentary.
...
Fixes ticket #7499 .
6 years ago
Aman Gupta
5dfeb7f081
avformat/mpegts: tag video streams with still images
...
Parses the video_stream_descriptor (H.222 2.6.2) to look
for the still_picture_flag. This is exposed to the user
via a new AV_DISPOSITION_STILL_IMAGE.
See for example https://tmm1.s3.amazonaws.com/music-choice.ts ,
whose video stream only updates every ~6 seconds.
Signed-off-by: Aman Gupta <aman@tmm1.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Aman Gupta
4f40d64e00
avformat/mpegts: set AV_DISPOSITION_DEPENDENT for mix_type=0 supplementary audio
...
Signed-off-by: Aman Gupta <aman@tmm1.net>
7 years ago
Aman Gupta
61ecfbc32a
avformat/dump: tag AV_DISPOSITION_DESCRIPTIONS streams
...
Signed-off-by: Aman Gupta <aman@tmm1.net>
7 years ago
Carl Eugen Hoyos
9b79c65ec0
lavu/lavc/lavf/lavfi: Do not use type modifier %zu on Windows MSVCRT.
7 years ago
Carl Eugen Hoyos
d4fbe99dab
lavf/dump: Remove superfluous cast.
7 years ago
James Almer
498864fe80
dump: use av_spherical_projection_name() to print spherical projection names
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Steve Lhomme
f4cee500e9
avformat/dump : Display Content Light Level metadata
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
James Almer
2efb70c379
avformat/dump: use av_spherical_projection_name() to print spherical projection names
...
Reviewed-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Clément Bœsch
549045254c
Fix all -Wformat warnings raised by DJGPP
8 years ago
Vittorio Giovara
5f90ad99bb
spherical: Change types of bounding and pad to uint32_t
...
These values are defined to be 32bit in the specification,
so it makes more sense to store them as fixed width.
Based on a patch by Micahel Niedermayer <michael@niedermayer.cc>.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Vittorio Giovara
f20bcec4c2
spherical: Change types of bounding and pad to uint32_t
...
These values are defined to be 32bit in the specification,
so it makes more sense to store them as fixed width.
Based on a patch by Micahel Niedermayer <michael@niedermayer.cc>.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Vittorio Giovara
1b7ffddb3a
spherical: Add tiled equirectangular type and projection-specific properties
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Vittorio Giovara
6bce6aa17d
spherical: Add tiled equirectangular type and projection-specific properties
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Vittorio Giovara
e7a6f8c972
lavc: Add spherical packet side data API
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Vittorio Giovara
2fb6acd9c2
lavc: Add spherical packet side data API
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
James Almer
9c1ccee7f8
avformat/dump: remove line break on mastering display metadata info dump
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Michael Niedermayer
4879841d15
avformat/dump: Show coded dimensions again
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
bb3388fd60
avformat/dump: Print tbc value
...
Fixes regression of av_dump_format()
Fixes part of Ticket 5444
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
fc07972582
avformat/dump: Use codec and QP limits from AVCodecContext
...
Fixes regression
Fixes Ticket5421
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
ad72d7d299
avformat: Copy properties from internal context
...
Fixes Ticket5467 "Lossless j2k information no longer shown"
Based on suggestion by Hendrik Leppkes
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Diego Biurrun
e45a638f50
dump: Drop unused variable
9 years ago
Vittorio Giovara
0c4468dc18
stereo3d: Add API to get name from value or value from name
...
Use it in av_dump_format() instead of a huge switch case.
9 years ago
Tobias Rapp
77d1e88cf5
avformat/dump.c: fix mixed log levels
...
Previously a partial log message without newline was printed in case of
loglevel=warning.
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Vittorio Giovara
41ed7ab45f
cosmetics: Fix spelling mistakes
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years ago
Bryan Huh
949444348b
avformat/dump: Fix sign bug in reported "start" time
...
Previously, the bug was that if -1 < start_time < 0, the reported
"start" time would lose the negative-sign.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Mark Harris
238ddd6482
avformat/dump: Fix context/level for payload dump
...
Use the context and level specified to av_pkt_dump_log2(),
instead of panic level (0), for dumping packet payload.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago