You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/format: simplify ifdeffery
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -272,9 +272,7 @@ int av_probe_input_buffer2(AVIOContext *pb, AVInputFormat **fmt,
|
|||||||
#if FF_API_PROBE_MIME
|
#if FF_API_PROBE_MIME
|
||||||
if (pb->av_class)
|
if (pb->av_class)
|
||||||
av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &pd.mime_type);
|
av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &pd.mime_type);
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
#if !FF_API_PROBE_MIME
|
|
||||||
if (!*fmt && pb->av_class && av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &mime_type) >= 0 && mime_type) {
|
if (!*fmt && pb->av_class && av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &mime_type) >= 0 && mime_type) {
|
||||||
if (!av_strcasecmp(mime_type, "audio/aacp")) {
|
if (!av_strcasecmp(mime_type, "audio/aacp")) {
|
||||||
*fmt = av_find_input_format("aac");
|
*fmt = av_find_input_format("aac");
|
||||||
|
Reference in New Issue
Block a user