[FFmpeg-devel] [Patch] fix ffprobe crash #3603

Stefano Sabatini stefasab at gmail.com
Sun May 18 20:27:07 CEST 2014


On date Wednesday 2014-05-14 22:32:25 +0530, Anshul encoded:
[...]
> From 986dc31969206203100b13a21627081831350a2a Mon Sep 17 00:00:00 2001
> From: Anshul <er.anshul.maheshwari at gmail.com>
> Date: Wed, 14 May 2014 22:21:58 +0530
> Subject: [PATCH] ffprobe: fix crash because of new streams occuring
> 
> Fix ticket #3603
> ---
>  ffprobe.c | 21 ++++++++++++++++++---
>  1 file changed, 18 insertions(+), 3 deletions(-)
> 
> diff --git a/ffprobe.c b/ffprobe.c
> index c6e0469..8310a18 100644
> --- a/ffprobe.c
> +++ b/ffprobe.c
> @@ -191,6 +191,7 @@ static const char unit_hertz_str[]          = "Hz"   ;
>  static const char unit_byte_str[]           = "byte" ;
>  static const char unit_bit_per_second_str[] = "bit/s";
>  
> +static int nb_streams;
>  static uint64_t *nb_streams_packets;
>  static uint64_t *nb_streams_frames;
>  static int *selected_streams;
> @@ -1632,6 +1633,13 @@ static void writer_register_all(void)
>  #define print_section_header(s) writer_print_section_header(w, s)
>  #define print_section_footer(s) writer_print_section_footer(w, s)
>  

> +#define REALLOCZ_ARRAY_STREAM (ptr, cur_n, new_n)                        \

The space before the "(" was creating problems. Fixed this, applied
some cosmetics and pushed, thanks.

[...]
-- 
FFmpeg = Free and Faithful Mysterious Portable Ermetic Gigant


More information about the ffmpeg-devel mailing list