[FFmpeg-cvslog] avformat/omadec: Don't output uninitialized values

Andreas Rheinhardt git at videolan.org
Wed Jan 12 02:51:06 EET 2022


ffmpeg | branch: release/4.4 | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Sep 23 14:11:35 2021 +0200| [953ad7b362d6bd05669ad063cfa11e13b12c8362] | committer: Andreas Rheinhardt

avformat/omadec: Don't output uninitialized values

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
(cherry picked from commit 874f03fae7618e61aec34a0739404559245abd09)

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

 libavformat/omadec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/omadec.c b/libavformat/omadec.c
index d31b475fd2..0f1c93c0be 100644
--- a/libavformat/omadec.c
+++ b/libavformat/omadec.c
@@ -494,7 +494,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;



More information about the ffmpeg-cvslog mailing list