[FFmpeg-cvslog] r11587 - trunk/ffmpeg.c

Måns Rullgård mans
Mon Jan 21 14:52:53 CET 2008


benoit wrote:
> Author: benoit
> Date: Mon Jan 21 14:36:20 2008
> New Revision: 11587
>
> Log:
> Inform user when bitstream filter fails.
>
>
> Modified:
>    trunk/ffmpeg.c
>
> Modified: trunk/ffmpeg.c
> ==============================================================================
> --- trunk/ffmpeg.c	(original)
> +++ trunk/ffmpeg.c	Mon Jan 21 14:36:20 2008
> @@ -415,9 +415,15 @@ static void write_frame(AVFormatContext
>                                            &new_pkt.data, &new_pkt.size,
>                                            pkt->data, pkt->size,
>                                            pkt->flags & PKT_FLAG_KEY);
> -        if(a){
> +        if(a>0){
>              av_free_packet(pkt);
>              new_pkt.destruct= av_destruct_packet;
> +        } else if(a<0){
> +            fprintf(stderr, "%s failed for stream %d, codec %s"
> +                , bsfc->filter->name
> +                , pkt->stream_index
> +                , avctx->codec ? avctx->codec->name : "copy");
> +            print_error("", a);

Now that's the ugliest coding style I've seen in a while.  And I'm
writing this at work...

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-cvslog mailing list