]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vcr1.c
More spelling errors patch by (Kevin Baragona (kevinmb500 gawab com>)
[ffmpeg] / libavcodec / vcr1.c
index 4905c703f18a8a9c2873bec9eb6dc0f75aeac6e3..442ad9136716ab4f1426ad13d2cda80af3f4ded3 100644 (file)
@@ -45,19 +45,12 @@ static int decode_frame(AVCodecContext *avctx,
     uint8_t *bytestream= buf;
     int i, x, y;
 
-    *data_size = 0;
-
-    /* special case for last picture */
-    if (buf_size == 0) {
-        return 0;
-    }
-
     if(p->data[0])
         avctx->release_buffer(avctx, p);
 
     p->reference= 0;
     if(avctx->get_buffer(avctx, p) < 0){
-        fprintf(stderr, "get_buffer() failed\n");
+        av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
         return -1;
     }
     p->pict_type= I_TYPE;
@@ -158,19 +151,14 @@ static int decode_init(AVCodecContext *avctx){
     return 0;
 }
 
+#if 0
 static int encode_init(AVCodecContext *avctx){
  
     common_init(avctx);
     
     return 0;
 }
-
-static int decode_end(AVCodecContext *avctx){
-
-    avcodec_default_free_buffers(avctx);
-
-    return 0;
-}
+#endif
 
 AVCodec vcr1_decoder = {
     "vcr1",
@@ -179,7 +167,7 @@ AVCodec vcr1_decoder = {
     sizeof(VCR1Context),
     decode_init,
     NULL,
-    decode_end,
+    NULL,
     decode_frame,
     CODEC_CAP_DR1,
 };