avformat/dump: Fix context/level for payload dump
authorMark Harris <mark.hsj@gmail.com>
Sat, 5 Mar 2016 17:10:00 +0000 (09:10 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 6 Mar 2016 02:32:04 +0000 (03:32 +0100)
Use the context and level specified to av_pkt_dump_log2(),
instead of panic level (0), for dumping packet payload.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/dump.c

index 9e7c12b..86bb82d 100644 (file)
@@ -101,7 +101,7 @@ static void pkt_dump_internal(void *avcl, FILE *f, int level, const AVPacket *pk
     HEXDUMP_PRINT("\n");
     HEXDUMP_PRINT("  size=%d\n", pkt->size);
     if (dump_payload)
-        av_hex_dump(f, pkt->data, pkt->size);
+        hex_dump_internal(avcl, f, level, pkt->data, pkt->size);
 }
 
 void av_pkt_dump2(FILE *f, const AVPacket *pkt, int dump_payload, const AVStream *st)