introduce zm_dump_codecpar and zm_dump_codec to be used for debugging
This commit is contained in:
parent
417421b1d8
commit
3c053b36ef
|
@ -413,6 +413,26 @@ static void zm_log_fps(double d, const char *postfix) {
|
|||
Debug(1, "%1.0fk %s", d / 1000, postfix);
|
||||
}
|
||||
|
||||
void zm_dump_codecpar ( const AVCodecParameters *par ) {
|
||||
Debug(1, "Dumping codecpar codec_type(%d) codec_id(%d) codec_tag(%d) width(%d) height(%d)",
|
||||
par->codec_type,
|
||||
par->codec_id,
|
||||
par->codec_tag,
|
||||
par->width,
|
||||
par->height
|
||||
);
|
||||
}
|
||||
|
||||
void zm_dump_codec ( const AVCodecContext *codec ) {
|
||||
Debug(1, "Dumping codecpar codec_type(%d) codec_id(%d) width(%d) height(%d)",
|
||||
codec->codec_type,
|
||||
codec->codec_id,
|
||||
codec->width,
|
||||
codec->height
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/* "user interface" functions */
|
||||
void zm_dump_stream_format(AVFormatContext *ic, int i, int index, int is_output) {
|
||||
char buf[256];
|
||||
|
|
|
@ -323,6 +323,9 @@ static av_always_inline av_const int64_t av_clip64_c(int64_t a, int64_t amin, in
|
|||
#endif
|
||||
|
||||
void zm_dump_stream_format(AVFormatContext *ic, int i, int index, int is_output);
|
||||
void zm_dump_codec ( const AVCodecContext *codec );
|
||||
void zm_dump_codecpar ( const AVCodecParameters *par );
|
||||
|
||||
#if LIBAVCODEC_VERSION_CHECK(56, 8, 0, 60, 100)
|
||||
#define zm_av_packet_unref( packet ) av_packet_unref( packet )
|
||||
#define zm_av_packet_ref( dst, src ) av_packet_ref( dst, src )
|
||||
|
|
Loading…
Reference in New Issue