From: Luca Barbato <[email protected]>

CC: [email protected]
Bug-Id: CID 1087082
---
 avprobe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/avprobe.c b/avprobe.c
index c56ac27..12524f2 100644
--- a/avprobe.c
+++ b/avprobe.c
@@ -650,7 +650,7 @@ static void show_stream(AVFormatContext *fmt_ctx, int 
stream_idx)
     probe_str("avg_frame_rate",
               rational_string(val_str, sizeof(val_str), "/",
               &stream->avg_frame_rate));
-    if (dec_ctx->bit_rate)
+    if (dec_ctx && dec_ctx->bit_rate)
         probe_str("bit_rate",
                   value_string(val_str, sizeof(val_str),
                                dec_ctx->bit_rate, unit_bit_per_second_str));
-- 
1.9.3 (Apple Git-50)

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to