0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

obs-ffmpeg: Remove unused variables

This commit is contained in:
Jim 2023-02-03 12:02:53 -08:00
parent 1f469e4f7c
commit 4488202247

View File

@ -34,12 +34,6 @@ struct ffmpeg_source {
bool media_valid; bool media_valid;
bool destroy_media; bool destroy_media;
struct SwsContext *sws_ctx;
int sws_width;
int sws_height;
enum AVPixelFormat sws_format;
uint8_t *sws_data;
int sws_linesize;
enum video_range_type range; enum video_range_type range;
bool is_linear_alpha; bool is_linear_alpha;
obs_source_t *source; obs_source_t *source;
@ -651,9 +645,6 @@ static void ffmpeg_source_destroy(void *data)
if (s->media_valid) if (s->media_valid)
mp_media_free(&s->media); mp_media_free(&s->media);
if (s->sws_ctx != NULL)
sws_freeContext(s->sws_ctx);
bfree(s->sws_data);
bfree(s->input); bfree(s->input);
bfree(s->input_format); bfree(s->input_format);
bfree(s->ffmpeg_options); bfree(s->ffmpeg_options);