Browse code

Add a context to av_log() calls.

Originally committed as revision 17775 to svn://svn.ffmpeg.org/ffmpeg/trunk

Benoit Fouet authored on 2009/03/04 01:19:37
Showing 1 changed files
... ...
@@ -64,7 +64,7 @@ next_chunk:
64 64
     if (url_feof(s->pb))
65 65
         return AVERROR(EIO);
66 66
     if (marker != TXD_MARKER && marker != TXD_MARKER2) {
67
-        av_log(NULL, AV_LOG_ERROR, "marker does not match\n");
67
+        av_log(s, AV_LOG_ERROR, "marker does not match\n");
68 68
         return AVERROR(EIO);
69 69
     }
70 70
 
... ...
@@ -78,7 +78,7 @@ next_chunk:
78 78
         case TXD_TEXTURE:
79 79
             goto next_chunk;
80 80
         default:
81
-            av_log(NULL, AV_LOG_ERROR, "unknown chunk id %i\n", id);
81
+            av_log(s, AV_LOG_ERROR, "unknown chunk id %i\n", id);
82 82
             return AVERROR(EIO);
83 83
     }
84 84