using stream type in eac3 parser
[ffmpeg.git] / libavcodec / ac3dec.c
index 75208de33d4669b22b9f1d7cb789fde266a33782..79a8606dba4e8756e0de44206d73ab8f27bcfc94 100644 (file)
@@ -1151,6 +1151,9 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *data_size,
             case AC3_PARSE_ERROR_FRAME_SIZE:
                 av_log(avctx, AV_LOG_ERROR, "invalid frame size\n");
                 break;
+            case AC3_PARSE_ERROR_STREAM_TYPE:
+                av_log(avctx, AV_LOG_ERROR, "invalid stream type\n");
+                break;
             default:
                 av_log(avctx, AV_LOG_ERROR, "invalid header\n");
                 break;