Fix issue with playback of H.261 video.

(closes issue #19379)
Reported by: neutrino88
Patches:
      videoprompt.patch uploaded by neutrino88 (license 297)
(changes by russell)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@321335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Leif Madsen
2011-05-27 21:54:54 +00:00
parent 96d69b7aa8
commit 9718442188
2 changed files with 2 additions and 1 deletions

View File

@@ -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 */

View File

@@ -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;