You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
fftools/ffmpeg: drop unused hwaccel variables
This commit is contained in:
@@ -2275,7 +2275,6 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output, int64_
|
|||||||
if (err < 0)
|
if (err < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
ist->hwaccel_retrieved_pix_fmt = decoded_frame->format;
|
|
||||||
|
|
||||||
best_effort_timestamp= decoded_frame->best_effort_timestamp;
|
best_effort_timestamp= decoded_frame->best_effort_timestamp;
|
||||||
*duration_pts = decoded_frame->duration;
|
*duration_pts = decoded_frame->duration;
|
||||||
@@ -4428,8 +4427,6 @@ static int transcode(void)
|
|||||||
ist = input_streams[i];
|
ist = input_streams[i];
|
||||||
if (ist->decoding_needed) {
|
if (ist->decoding_needed) {
|
||||||
avcodec_close(ist->dec_ctx);
|
avcodec_close(ist->dec_ctx);
|
||||||
if (ist->hwaccel_uninit)
|
|
||||||
ist->hwaccel_uninit(ist->dec_ctx);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -385,12 +385,8 @@ typedef struct InputStream {
|
|||||||
char *hwaccel_device;
|
char *hwaccel_device;
|
||||||
enum AVPixelFormat hwaccel_output_format;
|
enum AVPixelFormat hwaccel_output_format;
|
||||||
|
|
||||||
/* hwaccel context */
|
|
||||||
void *hwaccel_ctx;
|
|
||||||
void (*hwaccel_uninit)(AVCodecContext *s);
|
|
||||||
int (*hwaccel_retrieve_data)(AVCodecContext *s, AVFrame *frame);
|
int (*hwaccel_retrieve_data)(AVCodecContext *s, AVFrame *frame);
|
||||||
enum AVPixelFormat hwaccel_pix_fmt;
|
enum AVPixelFormat hwaccel_pix_fmt;
|
||||||
enum AVPixelFormat hwaccel_retrieved_pix_fmt;
|
|
||||||
|
|
||||||
/* stats */
|
/* stats */
|
||||||
// combined size of all the packets read
|
// combined size of all the packets read
|
||||||
@@ -493,8 +489,6 @@ typedef struct OutputStream {
|
|||||||
int64_t last_dropped;
|
int64_t last_dropped;
|
||||||
int64_t last_nb0_frames[3];
|
int64_t last_nb0_frames[3];
|
||||||
|
|
||||||
void *hwaccel_ctx;
|
|
||||||
|
|
||||||
/* video only */
|
/* video only */
|
||||||
AVRational frame_rate;
|
AVRational frame_rate;
|
||||||
AVRational max_frame_rate;
|
AVRational max_frame_rate;
|
||||||
|
Reference in New Issue
Block a user