encoder: minor improvements

This commit is contained in:
itsmattkc
2021-04-28 23:12:14 +10:00
parent 686c417e60
commit 2416891c76
3 changed files with 35 additions and 40 deletions
+1 -10
View File
@@ -53,15 +53,6 @@ public:
}
private:
/**
* @brief Handle an error
*
* Immediately closes the Decoder (freeing memory resources) and sends the string provided to the warning stream.
* As this function closes the Decoder, no further Decoder functions should be performed after this is called
* (unless the Decoder is opened again first).
*/
void Error(const QString& s);
/**
* @brief Handle an FFmpeg error code
*
@@ -70,7 +61,7 @@ private:
*
* @param error_code
*/
void FFmpegError(const char *context, int error_code);
void FFmpegError(const QString &context, int error_code);
bool WriteAVFrame(AVFrame* frame, AVCodecContext *codec_ctx, AVStream *stream);