History

vaapi_encode: Delete unused field

Mark Thompson committed 6 years ago

Commit c67bdd61 parent 3d19c5e2 files · +4 −9Browse files

Showing the changes to libavcodec/vaapi_encode.c (1 of 2 files). Show all

Unified · Split

libavcodec/vaapi_encode.c+4−8
@@ -607,11 +607,9 @@ fail_with_picture: · 606 unmodified lines
607607 fail:
608608 for(i = 0; i < pic->nb_param_buffers; i++)
609609 vaDestroyBuffer(ctx->hwctx->display, pic->param_buffers[i]);
610− for (i = 0; i < pic->nb_slices; i++) {
611− if (pic->slices) {
612− av_freep(&pic->slices[i].priv_data);
610+ if (pic->slices) {
611+ for (i = 0; i < pic->nb_slices; i++)
613612 av_freep(&pic->slices[i].codec_slice_params);
614− }
615613 }
616614 fail_at_end:
617615 av_freep(&pic->codec_picture_params);
@@ -742,11 +740,9 @@ static int vaapi_encode_free(AVCodecContext *avctx, · 124 unmodified lines
742740 if (pic->encode_issued)
743741 vaapi_encode_discard(avctx, pic);
744742
745− for (i = 0; i < pic->nb_slices; i++) {
746− if (pic->slices) {
747− av_freep(&pic->slices[i].priv_data);
743+ if (pic->slices) {
744+ for (i = 0; i < pic->nb_slices; i++)
748745 av_freep(&pic->slices[i].codec_slice_params);
749− }
750746 }
751747 av_freep(&pic->codec_picture_params);
752748

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