Message ID | 20171002025152.5648-2-jamrial@gmail.com |
---|---|
State | Withdrawn |
Headers | show |
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@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.
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) {
It's no longer needed after the last commit. Signed-off-by: James Almer <jamrial@gmail.com> --- Untested libavdevice/decklink_dec.cpp | 4 ---- 1 file changed, 4 deletions(-)