Commit 850cbd49 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/utils: Slightly un-clutter code in determinable_frame_size() by using a switch

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent d9909b11
...@@ -894,12 +894,13 @@ int ff_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -894,12 +894,13 @@ int ff_read_packet(AVFormatContext *s, AVPacket *pkt)
static int determinable_frame_size(AVCodecContext *avctx) static int determinable_frame_size(AVCodecContext *avctx)
{ {
if (/*avctx->codec_id == AV_CODEC_ID_AAC ||*/ switch(avctx->codec_id) {
avctx->codec_id == AV_CODEC_ID_MP1 || case AV_CODEC_ID_MP1:
avctx->codec_id == AV_CODEC_ID_MP2 || case AV_CODEC_ID_MP2:
avctx->codec_id == AV_CODEC_ID_MP3/* || case AV_CODEC_ID_MP3:
avctx->codec_id == AV_CODEC_ID_CELT*/)
return 1; return 1;
}
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment