History

libavformat/utils.c: av_pkt_dump_log2: use const pointers

Use const pointers to AVPacket and AVStream.

Roman Fietze committed 12 years ago

Commit 74aeb6b1 parent e12a7322 files · +7 −7Browse files

Unified · Split

2 files
  1. libavformat/avformat.h +3 −3
  2. libavformat/utils.c +4 −4
libavformat/avformat.h+3−3
@@ -2298,7 +2298,7 @@ void av_hex_dump_log(void *avcl, int level, const uint8_t *buf, int size); · 2297 unmodified lines
2298 * @param dump_payload True if the payload must be displayed, too.2298 * @param dump_payload True if the payload must be displayed, too.
2299 * @param st AVStream that the packet belongs to2299 * @param st AVStream that the packet belongs to
2300 */2300 */
2301void av_pkt_dump2(FILE *f, AVPacket *pkt, int dump_payload, AVStream *st);2301void av_pkt_dump2(FILE *f, const AVPacket *pkt, int dump_payload, const AVStream *st);
2302 2302
2303 2303
2304/**2304/**
@@ -2312,8 +2312,8 @@ void av_pkt_dump2(FILE *f, AVPacket *pkt, int dump_payload, AVStream *st); · 7 unmodified lines
2312 * @param dump_payload True if the payload must be displayed, too.2312 * @param dump_payload True if the payload must be displayed, too.
2313 * @param st AVStream that the packet belongs to2313 * @param st AVStream that the packet belongs to
2314 */2314 */
2315void av_pkt_dump_log2(void *avcl, int level, AVPacket *pkt, int dump_payload,2315void av_pkt_dump_log2(void *avcl, int level, const AVPacket *pkt, int dump_payload,
2316 AVStream *st);2316 const AVStream *st);
2317 2317
2318/**2318/**
2319 * Get the AVCodecID for the given codec tag tag.2319 * Get the AVCodecID for the given codec tag tag.
libavformat/utils.c+4−4
@@ -4039,7 +4039,7 @@ void av_hex_dump_log(void *avcl, int level, const uint8_t *buf, int size) · 4038 unmodified lines
4039 hex_dump_internal(avcl, NULL, level, buf, size);4039 hex_dump_internal(avcl, NULL, level, buf, size);
4040}4040}
4041 4041
4042static void pkt_dump_internal(void *avcl, FILE *f, int level, AVPacket *pkt,4042static void pkt_dump_internal(void *avcl, FILE *f, int level, const AVPacket *pkt,
4043 int dump_payload, AVRational time_base)4043 int dump_payload, AVRational time_base)
4044{4044{
4045 HEXDUMP_PRINT("stream #%d:\n", pkt->stream_index);4045 HEXDUMP_PRINT("stream #%d:\n", pkt->stream_index);
@@ -4063,13 +4063,13 @@ static void pkt_dump_internal(void *avcl, FILE *f, int level, AVPacket *pkt, · 17 unmodified lines
4063 av_hex_dump(f, pkt->data, pkt->size);4063 av_hex_dump(f, pkt->data, pkt->size);
4064}4064}
4065 4065
4066void av_pkt_dump2(FILE *f, AVPacket *pkt, int dump_payload, AVStream *st)4066void av_pkt_dump2(FILE *f, const AVPacket *pkt, int dump_payload, const AVStream *st)
4067{4067{
4068 pkt_dump_internal(NULL, f, 0, pkt, dump_payload, st->time_base);4068 pkt_dump_internal(NULL, f, 0, pkt, dump_payload, st->time_base);
4069}4069}
4070 4070
4071void av_pkt_dump_log2(void *avcl, int level, AVPacket *pkt, int dump_payload,4071void av_pkt_dump_log2(void *avcl, int level, const AVPacket *pkt, int dump_payload,
4072 AVStream *st)4072 const AVStream *st)
4073{4073{
4074 pkt_dump_internal(avcl, NULL, level, pkt, dump_payload, st->time_base);4074 pkt_dump_internal(avcl, NULL, level, pkt, dump_payload, st->time_base);
4075}4075}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t