On Fri, Jul 26, 2019 at 06:45:15PM +0200, Nicolas Gaullier wrote: > --- > libavformat/s337m.c | 57 > +++++++++++++++++++++++++++++++++++++++++++---------- > libavformat/s337m.h | 48 ++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 95 insertions(+), 10 deletions(-) > create mode 100644 libavformat/s337m.h > > diff --git a/libavformat/s337m.c b/libavformat/s337m.c > index 48ab66a6da..589fec53a9 100644 > --- a/libavformat/s337m.c > +++ b/libavformat/s337m.c > @@ -21,15 +21,7 @@ > #include "libavutil/intreadwrite.h" > #include "avformat.h" > #include "spdif.h" > - > -#define MARKER_16LE 0x72F81F4E > -#define MARKER_20LE 0x20876FF0E154 > -#define MARKER_24LE 0x72F8961F4EA5 > - > -#define IS_16LE_MARKER(state) ((state & 0xFFFFFFFF) == MARKER_16LE) > -#define IS_20LE_MARKER(state) ((state & 0xF0FFFFF0FFFF) == MARKER_20LE) > -#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)) > +#include "s337m.h" > > static int s337m_get_offset_and_codec(AVFormatContext *s, > uint64_t state, > @@ -141,7 +133,7 @@ static void bswap_buf24(uint8_t *data, int size) > FFSWAP(uint8_t, data[0], data[2]); > } > > -static int s337m_read_packet(AVFormatContext *s, AVPacket *pkt) > +int s337m_read_packet(AVFormatContext *s, AVPacket *pkt)
this would need a ff or avpriv prefix thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB If you fake or manipulate statistics in a paper in physics you will never get a job again. If you fake or manipulate statistics in a paper in medicin you will get a job for life at the pharma industry.
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".