History

avcodec/asvenc: Don't use FF_INPUT_BUFFER_MIN_SIZE

ASV-1/2 does not really have a header and so using FF_INPUT_BUFFER_MIN_SIZE is wasteful as well as ugly (such bounds should be codec-specific).

Andreas Rheinhardt committed 1 year ago

Commit 9bb617b1 parent b02985b1 file · +2 −2Browse files

Unified · Split

libavcodec/asvenc.c+2−2
@@ -271,8 +271,8 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 270 unmodified lines
271 return ret;271 return ret;
272 }272 }
273 273
274 if ((ret = ff_alloc_packet(avctx, pkt, c->mb_height * c->mb_width * MAX_MB_SIZE +274 ret = ff_alloc_packet(avctx, pkt, c->mb_height * c->mb_width * MAX_MB_SIZE + 3);
275 FF_INPUT_BUFFER_MIN_SIZE)) < 0)275 if (ret < 0)
276 return ret;276 return ret;
277 277
278 init_put_bits(&a->pb, pkt->data, pkt->size);278 init_put_bits(&a->pb, pkt->data, pkt->size);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t