diff mbox series

[FFmpeg-devel,04/15] avformat/g722: Inline constants

Message ID GV1P250MB073781DAC5BF91DB56F8C45F8F302@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 8768188581b4e47125d8eab625920e8ad65ed2d9
Headers show
Series [FFmpeg-devel,01/15] configure: Make hls demuxer select AAC, AC3 and EAC3 demuxers | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt March 23, 2024, 2:06 a.m. UTC
Forgotten in 5f0e161dd61552ad70760bad35b869eaec7368ff.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/g722.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/g722.c b/libavformat/g722.c
index 15519d90b5..adb78e8db5 100644
--- a/libavformat/g722.c
+++ b/libavformat/g722.c
@@ -19,7 +19,6 @@ 
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include "libavutil/avassert.h"
 #include "avformat.h"
 #include "demux.h"
 #include "internal.h"
@@ -38,10 +37,7 @@  static int g722_read_header(AVFormatContext *s)
     st->codecpar->sample_rate = 16000;
     st->codecpar->ch_layout   = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
 
-    st->codecpar->bits_per_coded_sample =
-        av_get_bits_per_sample(st->codecpar->codec_id);
-
-    av_assert0(st->codecpar->bits_per_coded_sample > 0);
+    st->codecpar->bits_per_coded_sample = 4;
 
     avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
     return 0;