UI: Clean up remaining C-isms in FFmpeg utils
This commit is contained in:
parent
2f78bb7991
commit
036f7e8147
@ -49,10 +49,10 @@ vector<FFmpegCodec> GetFormatCodecs(const FFmpegFormat &format,
|
|||||||
return codecs;
|
return codecs;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool is_output_device(const AVClass *avclass)
|
static bool is_output_device(const AVClass *avclass)
|
||||||
{
|
{
|
||||||
if (!avclass)
|
if (!avclass)
|
||||||
return 0;
|
return false;
|
||||||
|
|
||||||
switch (avclass->category) {
|
switch (avclass->category) {
|
||||||
case AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT:
|
case AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT:
|
||||||
@ -115,7 +115,7 @@ bool FFCodecAndFormatCompatible(const char *codec, const char *format)
|
|||||||
#else
|
#else
|
||||||
const AVOutputFormat *output_format;
|
const AVOutputFormat *output_format;
|
||||||
#endif
|
#endif
|
||||||
output_format = av_guess_format(format, NULL, NULL);
|
output_format = av_guess_format(format, nullptr, nullptr);
|
||||||
if (!output_format)
|
if (!output_format)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user