History

avcodec/libx264: Use dedicated pointer for accesses

Andreas Rheinhardt committed 3 years ago

Commit 19e35ed1 parent df53d7a1 file · +7 −7Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/libx264.c+7−7
@@ -498,19 +498,19 @@ FF_ENABLE_DEPRECATION_WARNINGS · 497 unmodified lines
498498 goto fail;
499499
500500 if (sei_data) {
501− pic->extra_sei.payloads = av_mallocz(sizeof(pic->extra_sei.payloads[0]));
502− if (pic->extra_sei.payloads == NULL) {
501+ sei->payloads = av_mallocz(sizeof(sei->payloads[0]));
502+ if (!sei->payloads) {
503503 av_free(sei_data);
504504 ret = AVERROR(ENOMEM);
505505 goto fail;
506506 }
507507
508− pic->extra_sei.sei_free = av_free;
508+ sei->sei_free = av_free;
509509
510− pic->extra_sei.payloads[0].payload_size = sei_size;
511− pic->extra_sei.payloads[0].payload = sei_data;
512− pic->extra_sei.num_payloads = 1;
513− pic->extra_sei.payloads[0].payload_type = 4;
510+ sei->payloads[0].payload_size = sei_size;
511+ sei->payloads[0].payload = sei_data;
512+ sei->payloads[0].payload_type = 4;
513+ sei->num_payloads = 1;
514514 }
515515 }
516516

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