[FFmpeg-devel] [PATCH 2/3] avcodec/decklink_dec: remove av_dup_packet() usage
James Almer
jamrial at gmail.com
Mon Oct 2 19:27:34 EEST 2017
On 10/1/2017 11:51 PM, James Almer wrote:
> It's no longer needed after the last commit.
>
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> Untested
>
> libavdevice/decklink_dec.cpp | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp
> index b0c2fb8791..386c64a177 100644
> --- a/libavdevice/decklink_dec.cpp
> +++ b/libavdevice/decklink_dec.cpp
> @@ -458,10 +458,6 @@ static int avpacket_queue_put(AVPacketQueue *q, AVPacket *pkt)
> av_log(q->avctx, AV_LOG_WARNING, "Decklink input buffer overrun!\n");
> return -1;
> }
> - /* duplicate the packet */
> - if (av_dup_packet(pkt) < 0) {
> - return -1;
> - }
>
> pkt1 = (AVPacketList *)av_malloc(sizeof(AVPacketList));
> if (!pkt1) {
Patch withdrawn. New better version in another thread.
More information about the ffmpeg-devel
mailing list