Commit eac8dcb1 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avcodec/vc2enc: Remove superfluous error message

ff_get_encode_buffer() already emits an error message of its own.
While just at it, also check for ret < 0 instead of just ret != 0.
Reviewed-by: 's avatarLynne <dev@lynne.ee>
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent b1702afd
......@@ -918,10 +918,8 @@ static int encode_frame(VC2EncContext *s, AVPacket *avpkt, const AVFrame *frame,
if (field < 2) {
ret = ff_get_encode_buffer(s->avctx, avpkt,
max_frame_bytes << s->interlaced, 0);
if (ret) {
av_log(s->avctx, AV_LOG_ERROR, "Error getting output packet.\n");
if (ret < 0)
return ret;
}
init_put_bits(&s->pb, avpkt->data, avpkt->size);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment