diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index 0693ca6f62f586a49fa8a47d4c49b96a23232487..09934819613d71f87bda9649c68824f122c3308b 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@ -660,9 +660,6 @@ int av_packet_make_writable(AVPacket *pkt) if (pkt->buf && av_buffer_is_writable(pkt->buf)) return 0; - if (!pkt->data) - return AVERROR(EINVAL); - ret = packet_alloc(&buf, pkt->size); if (ret < 0) return ret;