You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
avcodec/avpacket: remove unnecessary check in av_packet_make_writable()
Zero sized packets are already handled below in the function. This is more in line with av_packet_ref(). Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user