Commit e58c006b authored by Stefan Westerfeld's avatar Stefan Westerfeld

HLSOutputStream: fix comment, move av_err2str from hh to cc file

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 48790a6e
......@@ -17,6 +17,9 @@
#include "hlsoutputstream.hh"
#undef av_err2str
#define av_err2str(errnum) av_make_error_string((char*)__builtin_alloca(AV_ERROR_MAX_STRING_SIZE), AV_ERROR_MAX_STRING_SIZE, errnum)
/* HLSOutputStream is based on code from ffmpeg: doc/examples/muxing.c */
/*
......@@ -208,8 +211,7 @@ HLSOutputStream::open_audio (AVCodec *codec, AVDictionary *opt_arg)
return Error::Code::NONE;
}
/* Prepare a 16 bit dummy audio frame of 'frame_size' samples and
* 'nb_channels' channels. */
/* fill audio frame with samples from AudioBuffer */
AVFrame *
HLSOutputStream::get_audio_frame()
{
......
......@@ -29,8 +29,6 @@ extern "C" {
#include <libswresample/swresample.h>
#include <libavutil/avassert.h>
#include <libavutil/timestamp.h>
#undef av_err2str
#define av_err2str(errnum) av_make_error_string((char*)__builtin_alloca(AV_ERROR_MAX_STRING_SIZE), AV_ERROR_MAX_STRING_SIZE, errnum)
}
class HLSOutputStream : public AudioOutputStream {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment