diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h index 6b89c34e32..f3f1f3a12a 100644 --- a/include/asterisk/frame.h +++ b/include/asterisk/frame.h @@ -278,6 +278,7 @@ extern struct ast_frame ast_null_frame; #define AST_FORMAT_PNG (1ULL << 17) /*! H.261 Video */ #define AST_FORMAT_H261 (1ULL << 18) +#define AST_FORMAT_FIRST_VIDEO_BIT AST_FORMAT_H261 /*! H.263 Video */ #define AST_FORMAT_H263 (1ULL << 19) /*! H.263+ Video */ diff --git a/main/file.c b/main/file.c index 6f0cdd4463..9195748af4 100644 --- a/main/file.c +++ b/main/file.c @@ -672,7 +672,7 @@ struct ast_filestream *ast_openvstream(struct ast_channel *chan, const char *fil if (buf == NULL) return NULL; - for (format = AST_FORMAT_AUDIO_MASK + 1; format <= AST_FORMAT_VIDEO_MASK; format = format << 1) { + for (format = AST_FORMAT_FIRST_VIDEO_BIT; format <= AST_FORMAT_VIDEO_MASK; format = format << 1) { int fd; const char *fmt;