History

avcodec/evc_parse: use the correct struct size when allocating pps

James Almer committed 3 years ago

Commit f42df831 parent d00f0ee1 file · +1 −1Browse files

Unified · Split

libavcodec/evc_parse.c+1−1
@@ -355,7 +355,7 @@ EVCParserPPS *ff_evc_parse_pps(EVCParserContext *ctx, const uint8_t *bs, int bs_ · 354 unmodified lines
355 return NULL;355 return NULL;
356 356
357 if(!ctx->pps[pps_pic_parameter_set_id]) {357 if(!ctx->pps[pps_pic_parameter_set_id]) {
358 if((ctx->pps[pps_pic_parameter_set_id] = av_malloc(sizeof(EVCParserSPS))) == NULL)358 if ((ctx->pps[pps_pic_parameter_set_id] = av_malloc(sizeof(EVCParserPPS))) == NULL)
359 return NULL;359 return NULL;
360 }360 }
361 361

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