diff adpcm.c @ 925:7fccaa0d699d libavcodec

AVVideoFrame -> AVFrame
author michaelni
date Mon, 09 Dec 2002 12:03:43 +0000
parents babaca0899f1
children b32afefe7d33
line wrap: on
line diff
--- a/adpcm.c	Mon Dec 09 00:29:17 2002 +0000
+++ b/adpcm.c	Mon Dec 09 12:03:43 2002 +0000
@@ -126,12 +126,17 @@
         return -1;
         break;
     }
+
+    avctx->coded_frame= avcodec_alloc_frame();
+    avctx->coded_frame->key_frame= 1;
+
     return 0;
 }
 
 static int adpcm_encode_close(AVCodecContext *avctx)
 {
-    /* nothing to free */
+    av_freep(&avctx->coded_frame);
+
     return 0;
 }
 
@@ -253,7 +258,6 @@
     default:
         return -1;
     }
-    avctx->key_frame = 1;
     return dst - frame;
 }