h2645_parse: Fix loglevel for NAL header parsing
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Mon, 18 Mar 2019 19:18:11 +0000 (19:18 +0000)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Tue, 19 Mar 2019 19:56:19 +0000 (19:56 +0000)
We don't treat this as an error.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavcodec/h2645_parse.c

index 942f2c5..24658b3 100644 (file)
@@ -499,7 +499,7 @@ int ff_h2645_packet_split(H2645Packet *pkt, const uint8_t *buf, int length,
             ret = h264_parse_nal_header(nal, logctx);
         if (ret <= 0 || nal->size <= 0 || nal->size_bits <= 0) {
             if (ret < 0) {
-                av_log(logctx, AV_LOG_ERROR, "Invalid NAL unit %d, skipping.\n",
+                av_log(logctx, AV_LOG_WARNING, "Invalid NAL unit %d, skipping.\n",
                        nal->type);
             }
             pkt->nb_nals--;