avformat/mp3dec: fix msan warning when verifying mpa header
authorChris Cunningham <chcunningham@chromium.org>
Tue, 22 Nov 2016 21:54:50 +0000 (13:54 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 25 Jan 2017 23:34:12 +0000 (00:34 +0100)
commit533431d5af927012812c9c52b710cd796f7c022c
tree320ceb385f0cebb31607a33d4e8dbe996a05221e
parent9519b2560e1839644a74162ee52f2116532d964a
avformat/mp3dec: fix msan warning when verifying mpa header

MPEG Audio frame header must be 4 bytes. If we fail to read
4 bytes bail early to avoid Use-of-uninitialized-value msan error.
Reference https://crbug.com/666874.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit ab87df9a47cd31bfcae9acd84c04705a149dfc14)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mp3dec.c