summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-11-14 12:23:31 -0300
committerJames Almer <jamrial@gmail.com>2021-11-19 15:26:11 -0300
commit405685dec76b4bce3ba96bb83b3fac57d847a2fa (patch)
tree402868749afee9024773204c2a6985fe2aa2461d /fftools/ffmpeg.c
parent379f8b8ec6213789afc174d57c2751c52e66a8a7 (diff)
ffmpeg: remove unused hw_frames_ctx AVBufferRef from InputStream
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r--fftools/ffmpeg.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 5e3bfcdbbc..fa66aa1cf9 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -2913,12 +2913,6 @@ static enum AVPixelFormat get_format(AVCodecContext *s, const enum AVPixelFormat
}
}
- if (ist->hw_frames_ctx) {
- s->hw_frames_ctx = av_buffer_ref(ist->hw_frames_ctx);
- if (!s->hw_frames_ctx)
- return AV_PIX_FMT_NONE;
- }
-
ist->hwaccel_pix_fmt = *p;
break;
}