[FFmpeg-cvslog] fftools/ffmpeg_filter: drop an unnecessary use of OutputStream

Anton Khirnov git at videolan.org
Tue Apr 9 11:54:40 EEST 2024


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Apr  2 13:44:22 2024 +0200| [23c23077fc79f27022f56855080debdba7a00274] | committer: Anton Khirnov

fftools/ffmpeg_filter: drop an unnecessary use of OutputStream

OutputFilter.type contains the same information.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=23c23077fc79f27022f56855080debdba7a00274
---

 fftools/ffmpeg_filter.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 840502bd62..d2fd26af7e 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -2325,7 +2325,6 @@ static int fg_output_step(OutputFilterPriv *ofp, FilterGraphThread *fgt,
                           AVFrame *frame)
 {
     FilterGraphPriv    *fgp = fgp_from_fg(ofp->ofilter.graph);
-    OutputStream       *ost = ofp->ofilter.ost;
     AVFilterContext *filter = ofp->filter;
     FrameData *fd;
     int ret;
@@ -2379,7 +2378,7 @@ static int fg_output_step(OutputFilterPriv *ofp, FilterGraphThread *fgt,
     if (!fgp->is_meta)
         fd->bits_per_raw_sample = 0;
 
-    if (ost->type == AVMEDIA_TYPE_VIDEO) {
+    if (ofp->ofilter.type == AVMEDIA_TYPE_VIDEO) {
         if (!frame->duration) {
             AVRational fr = av_buffersink_get_frame_rate(filter);
             if (fr.num > 0 && fr.den > 0)



More information about the ffmpeg-cvslog mailing list