summaryrefslogtreecommitdiff
path: root/libavformat/s337m.c
diff options
context:
space:
mode:
authorNicolas Gaullier <nicolas.gaullier@cji.paris>2020-01-15 11:55:55 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2020-01-16 21:45:45 +0100
commit80c3a15a1b620bc0cb5e8f5269bb3a0f514c339e (patch)
tree37fb92f01b5a1d6691067e709cf9e312292dc4f9 /libavformat/s337m.c
parent330b157c9e04c7eece129aa1e3f758a2b579249e (diff)
avformat/s337m: Use base AVClass for av_log usage
s337m_get_offset_and_codec does not make use of AVFormatContext: AVClass is enough for logging. Will facilitate further use from outside Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/s337m.c')
-rw-r--r--libavformat/s337m.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/s337m.c b/libavformat/s337m.c
index 48ab66a6da..8956afb23f 100644
--- a/libavformat/s337m.c
+++ b/libavformat/s337m.c
@@ -31,7 +31,7 @@
#define IS_24LE_MARKER(state) ((state & 0xFFFFFFFFFFFF) == MARKER_24LE)
#define IS_LE_MARKER(state) (IS_16LE_MARKER(state) || IS_20LE_MARKER(state) || IS_24LE_MARKER(state))
-static int s337m_get_offset_and_codec(AVFormatContext *s,
+static int s337m_get_offset_and_codec(void *avc,
uint64_t state,
int data_type, int data_size,
int *offset, enum AVCodecID *codec)
@@ -50,8 +50,8 @@ static int s337m_get_offset_and_codec(AVFormatContext *s,
}
if ((data_type & 0x1F) != 0x1C) {
- if (s)
- avpriv_report_missing_feature(s, "Data type %#x in SMPTE 337M", data_type & 0x1F);
+ if (avc)
+ avpriv_report_missing_feature(avc, "Data type %#x in SMPTE 337M", data_type & 0x1F);
return AVERROR_PATCHWELCOME;
}
@@ -72,8 +72,8 @@ static int s337m_get_offset_and_codec(AVFormatContext *s,
*offset = 1601;
break;
default:
- if (s)
- avpriv_report_missing_feature(s, "Dolby E data size %d in SMPTE 337M", data_size);
+ if (avc)
+ avpriv_report_missing_feature(avc, "Dolby E data size %d in SMPTE 337M", data_size);
return AVERROR_PATCHWELCOME;
}