#ifndef AUDIO_STREAM_H #define AUDIO_STREAM_H #include struct Stream { AVFormatContext *s; AVStream *av_stream; }; int stream_init (struct Stream *stream, AVFormatContext *s, int codec_id, int sample_rate, int format, const AVChannelLayout *layout, AVDictionary **opts); int stream_send (struct Stream *stream, AVPacket *pkt); #endif // AUDIO_STREAM_H