On Sat, 2016-02-06 at 13:15 +0100, Luca Barbato wrote:
> Some muxer might or might not fit incomplete mp3 frames in
> their packets.
> 
> Bug-Id: 899
> 
> CC: [email protected]
> ---
>  libavformat/mov.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/libavformat/mov.c b/libavformat/mov.c
> index 0616963..74fc09d 100644
> --- a/libavformat/mov.c
> +++ b/libavformat/mov.c
> @@ -2532,6 +2532,9 @@ static int mov_read_trak(MOVContext *c,
> AVIOContext *pb, MOVAtom atom)
>          st->codec->width = 0; /* let decoder init width/height */
>          st->codec->height= 0;
>          break;
> +    case AV_CODEC_ID_MP3:
> +        st->need_parsing = AVSTREAM_PARSE_FULL;
> +        break;
>      }
>  
>      /* Do not need those anymore. */

Works for me.  I tested against an old version of HandBrake that
outputs this kind of broken mp3.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to