[FFmpeg-cvslog] r11587 - trunk/ffmpeg.c
Benoit Fouet
benoit.fouet
Mon Jan 21 14:55:39 CET 2008
M?ns Rullg?rd wrote:
> 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...
>
please don't hesitate to change it to your taste...
--
Ben
Purple Labs S.A.
www.purplelabs.com
More information about the ffmpeg-cvslog
mailing list