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
498 goto fail;498 goto fail;
499 499
500 if (sei_data) {500 if (sei_data) {
501 pic->extra_sei.payloads = av_mallocz(sizeof(pic->extra_sei.payloads[0]));501 sei->payloads = av_mallocz(sizeof(sei->payloads[0]));
502 if (pic->extra_sei.payloads == NULL) {502 if (!sei->payloads) {
503 av_free(sei_data);503 av_free(sei_data);
504 ret = AVERROR(ENOMEM);504 ret = AVERROR(ENOMEM);
505 goto fail;505 goto fail;
506 }506 }
507 507
508 pic->extra_sei.sei_free = av_free;508 sei->sei_free = av_free;
509 509
510 pic->extra_sei.payloads[0].payload_size = sei_size;510 sei->payloads[0].payload_size = sei_size;
511 pic->extra_sei.payloads[0].payload = sei_data;511 sei->payloads[0].payload = sei_data;
512 pic->extra_sei.num_payloads = 1;512 sei->payloads[0].payload_type = 4;
513 pic->extra_sei.payloads[0].payload_type = 4;513 sei->num_payloads = 1;
514 }514 }
515 }515 }
516 516

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