[FFmpeg-devel] [PATCH] ffmpeg.c : replace perror() by av_log

İsmail Dönmez ismail
Sun Aug 2 19:14:24 CEST 2009


2009/8/2 M?ns Rullg?rd <mans at mansr.com>:
> ?smail D?nmez <ismail at namtrac.org> writes:
>
>> Hi;
>>
>> Patch attached.
>>
>> --
>> ?smail D?NMEZ
>>
>> Index: ffmpeg.c
>> ===================================================================
>> --- ffmpeg.c ?(revision 19560)
>> +++ ffmpeg.c ?(working copy)
>> @@ -1085,7 +1085,7 @@
>> ? ? ?if (!vstats_file) {
>> ? ? ? ? ?vstats_file = fopen(vstats_filename, "w");
>> ? ? ? ? ?if (!vstats_file) {
>> - ? ? ? ? ? ?perror("fopen");
>> + ? ? ? ? ? ?av_log(NULL, AV_LOG_ERROR, "Failed to open stats file.\n");
>
> perror() gives a descriptive error message. ?Please use strerror() to
> provide the same detail here.

Attached a new version using strerror.

Regards.

-- 
?smail D?NMEZ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-perror.patch
Type: application/octet-stream
Size: 435 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090802/463624ea/attachment.obj>



More information about the ffmpeg-devel mailing list