Message ID | 20220220000926.11134-1-qyot27@gmail.com |
---|---|
State | Accepted |
Commit | ce0000dc98cb537383ee03d430ea40adeed1f804 |
Headers | show |
Series | [FFmpeg-devel] avformat/avisynth: remove framedata variable | expand |
Context | Check | Description |
---|---|---|
andriy/configure_armv7_RPi4 | warning | Failed to apply patch |
andriy/configure_aarch64_jetson | warning | Failed to apply patch |
yinshiyou/configure_loongarch64 | warning | Failed to apply patch |
On 2/19/22 7:09 PM, Stephen Hutchinson wrote: > It's just a simple index. > > Addresses Coverity issue 1500290 > > Signed-off-by: Stephen Hutchinson <qyot27@gmail.com> > --- > libavformat/avisynth.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c > index 03489f180f..318588ff52 100644 > --- a/libavformat/avisynth.c > +++ b/libavformat/avisynth.c > @@ -244,7 +244,7 @@ static int avisynth_create_stream_video(AVFormatContext *s, AVStream *st) > AviSynthContext *avs = s->priv_data; > const AVS_Map *avsmap; > AVS_VideoFrame *frame; > - int framedata, error; > + int error; > int planar = 0; // 0: packed, 1: YUV, 2: Y8, 3: Planar RGB, 4: YUVA, 5: Planar RGBA > > st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; > @@ -507,7 +507,7 @@ static int avisynth_create_stream_video(AVFormatContext *s, AVStream *st) > > if (avs_library.avs_get_version(avs->clip) >= 9) { > > - frame = avs_library.avs_get_frame(avs->clip, framedata); > + frame = avs_library.avs_get_frame(avs->clip, 0); > avsmap = avs_library.avs_get_frame_props_ro(avs->env, frame); > > /* Field order */ Pushed.
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c index 03489f180f..318588ff52 100644 --- a/libavformat/avisynth.c +++ b/libavformat/avisynth.c @@ -244,7 +244,7 @@ static int avisynth_create_stream_video(AVFormatContext *s, AVStream *st) AviSynthContext *avs = s->priv_data; const AVS_Map *avsmap; AVS_VideoFrame *frame; - int framedata, error; + int error; int planar = 0; // 0: packed, 1: YUV, 2: Y8, 3: Planar RGB, 4: YUVA, 5: Planar RGBA st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; @@ -507,7 +507,7 @@ static int avisynth_create_stream_video(AVFormatContext *s, AVStream *st) if (avs_library.avs_get_version(avs->clip) >= 9) { - frame = avs_library.avs_get_frame(avs->clip, framedata); + frame = avs_library.avs_get_frame(avs->clip, 0); avsmap = avs_library.avs_get_frame_props_ro(avs->env, frame); /* Field order */
It's just a simple index. Addresses Coverity issue 1500290 Signed-off-by: Stephen Hutchinson <qyot27@gmail.com> --- libavformat/avisynth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)