[FFmpeg-devel] [PATCH 21/27] avformat/omadec: Don't output uninitialized values

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Thu Sep 23 18:28:56 EEST 2021


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavformat/omadec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/omadec.c b/libavformat/omadec.c
index f6b7697a43..a727cc4d66 100644
--- a/libavformat/omadec.c
+++ b/libavformat/omadec.c
@@ -491,7 +491,7 @@ static int oma_read_header(AVFormatContext *s)
         AV_WL16(&edata[6],  jsflag);        // coding mode
         AV_WL16(&edata[8],  jsflag);        // coding mode
         AV_WL16(&edata[10], 1);             // always 1
-        // AV_WL16(&edata[12], 0);          // always 0
+        AV_WL16(&edata[12], 0);             // always 0
 
         avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
         break;
-- 
2.30.2



More information about the ffmpeg-devel mailing list