diff --git a/libavcodec/ptx.c b/libavcodec/ptx.c
index 20fabb64eeb131b734870c254fa5d7365fb2cecd..b3e2919df77ccf36e08e145f4eb384100ef73d1e 100644
--- a/libavcodec/ptx.c
+++ b/libavcodec/ptx.c
@@ -30,7 +30,6 @@ static int ptx_init(AVCodecContext *avctx) {
 
     avcodec_get_frame_defaults(&s->picture);
     avctx->coded_frame= &s->picture;
-    s->picture.data[0] = NULL;
 
     return 0;
 }