On 06/09/2011 06:28 AM, Anton Khirnov wrote:

> @@ -2126,7 +2126,7 @@ static int open_input_stream(HTTPContext *c, const char 
> *info)
>  {
>      char buf[128];
>      char input_filename[1024];
> -    AVFormatContext *s;
> +    AVFormatContext *s = NULL;
>      int buf_size, i, ret;
>      int64_t stream_pos;
>  
> @@ -2157,8 +2157,8 @@ static int open_input_stream(HTTPContext *c, const char 
> *info)
>          return -1;
>  
>      /* open stream */
> -    if ((ret = av_open_input_file(&s, input_filename, c->stream->ifmt,
> -                                  buf_size, c->stream->ap_in)) < 0) {
> +    s->iformat = c->stream->ifmt;
> +    if ((ret = avformat_open_input(&s, input_filename, &c->stream->in_opts)) 
> < 0) {
>          http_log("could not open %s: %d\n", input_filename, ret);
>          return -1;
>      }


This looks like it would segfault at: s->iformat = c->stream->ifmt;

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

Reply via email to