[FFmpeg-devel] [PATCH] examples/decoding_encoding: apply various message log fixes

Michael Niedermayer michaelni at gmx.at
Thu Sep 13 16:29:25 CEST 2012


On Thu, Sep 13, 2012 at 10:19:57AM +0200, Stefano Sabatini wrote:
[...]
> @@ -255,13 +255,13 @@ static void audio_decode_example(const char *outfilename, const char *filename)
>  
>      /* open it */
>      if (avcodec_open2(c, codec, NULL) < 0) {
> -        fprintf(stderr, "could not open codec\n");
> +        fprintf(stderr, "Could not open codec\n");
>          exit(1);
>      }
>  
>      f = fopen(filename, "rb");
>      if (!f) {
> -        fprintf(stderr, "could not open %s\n", filename);
> +        fprintf(stderr, "Could not open file %s\n", filename);

"Could not open myfile.mpg" is IMHO better than
"Could not open file myfile.mpg"

The same may apply to other changes

otherwise, no objections from me

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

DNS cache poisoning attacks, popular search engine, Google internet authority
dont be evil, please
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120913/7d672a6b/attachment.asc>


More information about the ffmpeg-devel mailing list