[FFmpeg-devel] [PATCH] check if bsf returns an error in ffmpeg.c

Benoit Fouet benoit.fouet
Fri Jan 18 14:21:51 CET 2008


Michael Niedermayer wrote:
> Hi
>
> On Fri, Jan 18, 2008 at 12:31:15PM +0100, Benoit Fouet wrote:
>   
>> Index: ffmpeg.c
>> ===================================================================
>> --- ffmpeg.c	(revision 11551)
>> +++ ffmpeg.c	(working copy)
>> @@ -415,10 +415,12 @@
>>                                            &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)
>> +            print_error("av_bitstream_filter_filter()", a);
>>     
>
> this has a problem, it doesnt print which stream caused the error nor
> which bitstream filter, both could be quite usefull
>
>   

is it possible at this place to know the file index ?

-- 
Ben
Purple Labs S.A.
www.purplelabs.com




More information about the ffmpeg-devel mailing list