On 2012-10-25 16:27:03 +0200, Janne Grunau wrote:
> ---
>  avserver.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/avserver.c b/avserver.c
> index 93abfa8..4e96653 100644
> --- a/avserver.c
> +++ b/avserver.c
> @@ -3567,6 +3567,8 @@ static void extract_mpeg4_header(AVFormatContext 
> *infile)
>      AVStream *st;
>      const uint8_t *p;
>  
> +    infile->flags |= AVFMT_FLAG_NOFILLIN | AVFMT_FLAG_NOPARSE;
> +
>      mpeg4_count = 0;
>      for(i=0;i<infile->nb_streams;i++) {
>          st = infile->streams[i];
> @@ -3580,7 +3582,7 @@ static void extract_mpeg4_header(AVFormatContext 
> *infile)
>  
>      printf("MPEG4 without extra data: trying to find header in %s\n", 
> infile->filename);
>      while (mpeg4_count > 0) {
> -        if (av_read_packet(infile, &pkt) < 0)
> +        if (av_read_frame(infile, &pkt) < 0)
>              break;
>          st = infile->streams[pkt.stream_index];
>          if (st->codec->codec_id == AV_CODEC_ID_MPEG4 &&

ping

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

Reply via email to