]> git.sesse.net Git - ffmpeg/blobdiff - ffprobe.c
lavf/matroskadec: Support HEVC demuxing.
[ffmpeg] / ffprobe.c
index bbcdc975e5534adeea80f77c957dea005c88c8f6..b7f287c7fb59995437e2b1450a6aaf6e2d36756e 100644 (file)
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1636,7 +1636,7 @@ static int read_interval_packets(WriterContext *w, AVFormatContext *fmt_ctx,
     AVPacket pkt, pkt1;
     AVFrame frame;
     int ret = 0, i = 0, frame_count = 0;
-    int64_t start, end = interval->end;
+    int64_t start = -INT64_MAX, end = interval->end;
     int has_start = 0, has_end = interval->has_end && !interval->end_is_offset;
 
     av_init_packet(&pkt);
@@ -1823,6 +1823,15 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
             else   print_str_opt("sample_fmt", "unknown");
             print_val("sample_rate",     dec_ctx->sample_rate, unit_hertz_str);
             print_int("channels",        dec_ctx->channels);
+
+            if (dec_ctx->channel_layout) {
+                av_bprint_clear(&pbuf);
+                av_bprint_channel_layout(&pbuf, dec_ctx->channels, dec_ctx->channel_layout);
+                print_str    ("channel_layout", pbuf.str);
+            } else {
+                print_str_opt("channel_layout", "unknown");
+            }
+
             print_int("bits_per_sample", av_get_bits_per_sample(dec_ctx->codec_id));
             break;