mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-11-02 05:24:15 +08:00
[jpegd]: fix bug: input buffer size is set incorrectly.
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1196 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -1145,7 +1145,7 @@ MPP_RET jpegd_prepare(void *ctx, MppPacket pkt, HalDecTask *task)
|
||||
}
|
||||
|
||||
if (pkt_length > JpegParserCtx->bufferSize) {
|
||||
JPEGD_INFO_LOG("Huge Frame(%d Bytes)!", pkt_length);
|
||||
JPEGD_INFO_LOG("Huge Frame(%d Bytes)! bufferSize:%d", pkt_length, JpegParserCtx->bufferSize);
|
||||
mpp_free(JpegParserCtx->recv_buffer);
|
||||
JpegParserCtx->recv_buffer = NULL;
|
||||
|
||||
@@ -1186,7 +1186,6 @@ MPP_RET jpegd_prepare(void *ctx, MppPacket pkt, HalDecTask *task)
|
||||
mpp_packet_set_length(input_packet, pkt_length);
|
||||
|
||||
JpegParserCtx->streamLength = pkt_length;
|
||||
JpegParserCtx->bufferSize = pkt_length;
|
||||
task->input_packet = input_packet;
|
||||
task->valid = 1;
|
||||
JPEGD_VERBOSE_LOG("input_packet:%p, recv_buffer:%p, pkt_length:%d", input_packet,
|
||||
|
||||
Reference in New Issue
Block a user