diff mbox series

[FFmpeg-devel,2/3] Remove format (Alternative solution for CID1477423)

Message ID 20210520212549.15466-2-michael@niedermayer.cc
State New
Headers show
Series [FFmpeg-devel,1/3] avformat/moflex: Initialize format
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Michael Niedermayer May 20, 2021, 9:25 p.m. UTC
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavformat/moflex.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Michael Niedermayer May 27, 2021, 3:40 p.m. UTC | #1
On Thu, May 20, 2021 at 11:25:48PM +0200, Michael Niedermayer wrote:
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> ---
>  libavformat/moflex.c | 3 ---
>  1 file changed, 3 deletions(-)

will combine with patch 1 and apply

[...]
diff mbox series

Patch

diff --git a/libavformat/moflex.c b/libavformat/moflex.c
index dd4e7e0726..234b0fb06e 100644
--- a/libavformat/moflex.c
+++ b/libavformat/moflex.c
@@ -172,7 +172,6 @@  static int moflex_read_sync(AVFormatContext *s)
         unsigned type, ssize, codec_id = 0;
         unsigned codec_type, width = 0, height = 0, sample_rate = 0, channels = 0;
         int stream_index = -1;
-        int format = AV_PIX_FMT_NONE;
         AVRational fps;
 
         read_var_byte(s, &type);
@@ -213,7 +212,6 @@  static int moflex_read_sync(AVFormatContext *s)
             fps.den = avio_rb16(pb);
             width = avio_rb16(pb);
             height = avio_rb16(pb);
-            format = AV_PIX_FMT_YUV420P;
             avio_skip(pb, type == 3 ? 3 : 2);
             break;
         case 4:
@@ -235,7 +233,6 @@  static int moflex_read_sync(AVFormatContext *s)
             st->codecpar->height     = height;
             st->codecpar->sample_rate= sample_rate;
             st->codecpar->channels   = channels;
-            st->codecpar->format     = format;
             st->priv_data            = av_packet_alloc();
             if (!st->priv_data)
                 return AVERROR(ENOMEM);