diff options
author | Mark Harris <mark.hsj@gmail.com> | 2016-03-05 09:10:00 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-03-06 03:32:04 +0100 |
commit | 238ddd6482d7aea2e917760a9bef291030a11e61 (patch) | |
tree | ddd2ac0731729ab6c258674fb04e7cf40fc16bee /libavformat/dump.c | |
parent | c78a7267175a3d1e07b88be42f949f95124925e3 (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.c | 2 |
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) |