diff options
author | Aman Gupta <aman@tmm1.net> | 2018-05-15 11:26:07 -0700 |
---|---|---|
committer | Aman Gupta <aman@tmm1.net> | 2018-05-17 12:03:22 -0700 |
commit | 5dfeb7f0811c0b64d68e80296067fa8fed57beee (patch) | |
tree | c2ec0062b74dbb00be030632b4111f21541e2f36 /libavformat/dump.c | |
parent | 2734f8d63a3864d09f9e1359a8f5af4f13c70ac9 (diff) |
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>
Diffstat (limited to 'libavformat/dump.c')
-rw-r--r-- | libavformat/dump.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/dump.c b/libavformat/dump.c index 942e62a581..bc0f401550 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -551,6 +551,8 @@ static void dump_stream_format(AVFormatContext *ic, int i, av_log(NULL, AV_LOG_INFO, " (descriptions)"); if (st->disposition & AV_DISPOSITION_DEPENDENT) av_log(NULL, AV_LOG_INFO, " (dependent)"); + if (st->disposition & AV_DISPOSITION_STILL_IMAGE) + av_log(NULL, AV_LOG_INFO, " (still image)"); av_log(NULL, AV_LOG_INFO, "\n"); dump_metadata(NULL, st->metadata, " "); |