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
22982298 * @param dump_payload True if the payload must be displayed, too.
22992299 * @param st AVStream that the packet belongs to
23002300 */
2301−void av_pkt_dump2(FILE *f, AVPacket *pkt, int dump_payload, AVStream *st);
2301+void av_pkt_dump2(FILE *f, const AVPacket *pkt, int dump_payload, const AVStream *st);
23022302
23032303
23042304 /**
@@ -2312,8 +2312,8 @@ void av_pkt_dump2(FILE *f, AVPacket *pkt, int dump_payload, AVStream *st); · 7 unmodified lines
23122312 * @param dump_payload True if the payload must be displayed, too.
23132313 * @param st AVStream that the packet belongs to
23142314 */
2315−void av_pkt_dump_log2(void *avcl, int level, AVPacket *pkt, int dump_payload,
2316− AVStream *st);
2315+void av_pkt_dump_log2(void *avcl, int level, const AVPacket *pkt, int dump_payload,
2316+ const AVStream *st);
23172317
23182318 /**
23192319 * 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
40394039 hex_dump_internal(avcl, NULL, level, buf, size);
40404040 }
40414041
4042−static void pkt_dump_internal(void *avcl, FILE *f, int level, AVPacket *pkt,
4042+static void pkt_dump_internal(void *avcl, FILE *f, int level, const AVPacket *pkt,
40434043 int dump_payload, AVRational time_base)
40444044 {
40454045 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
40634063 av_hex_dump(f, pkt->data, pkt->size);
40644064 }
40654065
4066−void av_pkt_dump2(FILE *f, AVPacket *pkt, int dump_payload, AVStream *st)
4066+void av_pkt_dump2(FILE *f, const AVPacket *pkt, int dump_payload, const AVStream *st)
40674067 {
40684068 pkt_dump_internal(NULL, f, 0, pkt, dump_payload, st->time_base);
40694069 }
40704070
4071−void av_pkt_dump_log2(void *avcl, int level, AVPacket *pkt, int dump_payload,
4072− AVStream *st)
4071+void av_pkt_dump_log2(void *avcl, int level, const AVPacket *pkt, int dump_payload,
4072+ const AVStream *st)
40734073 {
40744074 pkt_dump_internal(avcl, NULL, level, pkt, dump_payload, st->time_base);
40754075 }

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