summaryrefslogtreecommitdiff
path: root/libavformat/dump.c
diff options
context:
space:
mode:
authorMark Harris <mark.hsj@gmail.com>2016-03-05 09:10:00 -0800
committerMichael Niedermayer <michael@niedermayer.cc>2016-03-06 03:32:04 +0100
commit238ddd6482d7aea2e917760a9bef291030a11e61 (patch)
treeddd2ac0731729ab6c258674fb04e7cf40fc16bee /libavformat/dump.c
parentc78a7267175a3d1e07b88be42f949f95124925e3 (diff)
avformat/dump: Fix context/level for payload dump
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>
Diffstat (limited to 'libavformat/dump.c')
-rw-r--r--libavformat/dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dump.c b/libavformat/dump.c
index 9e7c12b08d..86bb82da13 100644
--- a/libavformat/dump.c
+++ b/libavformat/dump.c
@@ -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)