Menu

#58 Compile error (all versions and trunk) on mac os php 5.4 ffmpeg 2.1.3

release
open
nobody
None
5
2014-12-19
2014-01-31
Alexandr
No

/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:73:31: error: use of undeclared identifier 'MAX_STREAMS'
AVCodecContext codec_ctx[MAX_STREAMS];
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:152:44: error: use of undeclared identifier 'CODEC_TYPE_VIDEO'
int i = _php_get_stream_index(fmt_ctx, CODEC_TYPE_VIDEO);
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:165:44: error: use of undeclared identifier 'CODEC_TYPE_AUDIO'
int i = _php_get_stream_index(fmt_ctx, CODEC_TYPE_AUDIO);
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:203:21: error: use of undeclared identifier 'MAX_STREAMS'
for (i = 0; i < MAX_STREAMS; i++) {
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:253:9: warning: 'av_close_input_file' is deprecated [-Wdeprecated-declarations]
av_close_input_file(ffmovie_ctx->fmt_ctx);
^
/usr/local/include/libavformat/avformat.h:1793:6: note: 'av_close_input_file' declared here
void av_close_input_file(AVFormatContext
s);
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:258:9: warning: implicit declaration of function 'av_open_input_file' is invalid in C99
[-Wimplicit-function-declaration]
if (av_open_input_file(&ffmovie_ctx->fmt_ctx, filename, NULL, 0, NULL) < 0) {
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:263:5: warning: 'av_find_stream_info' is deprecated [-Wdeprecated-declarations]
av_find_stream_info(ffmovie_ctx->fmt_ctx);
^
/usr/local/include/libavformat/avformat.h:1616:5: note: 'av_find_stream_info' declared here
int av_find_stream_info(AVFormatContext ic);
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:311:9: error: use of undeclared identifier 'list_entry'
list_entry
le;
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:311:21: error: use of undeclared identifier 'le'
list_entry le;
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:324:48: error: use of undeclared identifier 'le'
hashkey_length+1, (void
*)&le)) {
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:327:26: error: use of undeclared identifier 'le'
if (Z_TYPE_P(le) != le_ffmpeg_pmovie) {
^
/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_operators.h:461:34: note: expanded from macro 'Z_TYPE_P'

define Z_TYPE_P(zval_p) Z_TYPE(*zval_p)

                                    ^

/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_operators.h:460:24: note: expanded from macro 'Z_TYPE'

define Z_TYPE(zval) (zval).type

                             ^

/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:331:46: error: use of undeclared identifier 'le'
ffmovie_ctx = (ff_movie_context*)le->ptr;
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:346:13: error: use of undeclared identifier 'list_entry'
list_entry new_le;
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:356:20: error: use of undeclared identifier 'new_le'
Z_TYPE(new_le) = le_ffmpeg_pmovie;
^
/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_operators.h:460:24: note: expanded from macro 'Z_TYPE'

define Z_TYPE(zval) (zval).type

                             ^

/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:357:13: error: use of undeclared identifier 'new_le'
new_le.ptr = ffmovie_ctx;
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:360:52: error: use of undeclared identifier 'new_le'
hashkey_length+1, (void )&new_le, sizeof(list_entry),
^
/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_hash.h:109:51: note: expanded from macro 'zend_hash_update'
_zend_hash_add_or_update(ht, arKey, nKeyLength, pData, nDataSize, pDest, HASH_UPDATE ZEND_FILE_LINE_CC)
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:409:25: error: use of undeclared identifier 'MAX_STREAMS'
for (i = 0; i < MAX_STREAMS; i++) {
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:417:5: warning: 'av_close_input_file' is deprecated [-Wdeprecated-declarations]
av_close_input_file(ffmovie_ctx->fmt_ctx);
^
/usr/local/include/libavformat/avformat.h:1793:6: note: 'av_close_input_file' declared here
void av_close_input_file(AVFormatContext
s);
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:433:25: error: use of undeclared identifier 'MAX_STREAMS'
for (i = 0; i < MAX_STREAMS; i++) {
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:441:5: warning: 'av_close_input_file' is deprecated [-Wdeprecated-declarations]
av_close_input_file(ffmovie_ctx->fmt_ctx);
^
/usr/local/include/libavformat/avformat.h:1793:6: note: 'av_close_input_file' declared here
void av_close_input_file(AVFormatContext *s);
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:484:28: error: use of undeclared identifier 'CODEC_TYPE_VIDEO'
if (stream_type == CODEC_TYPE_VIDEO) {
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:513:13: warning: implicit declaration of function 'avcodec_open' is invalid in C99
[-Wimplicit-function-declaration]
if (avcodec_open(ffmovie_ctx->codec_ctx[stream_index], decoder) < 0) {
^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:531:42: error: no member named 'comment' in 'struct AVFormatContext'
RETURN_STRINGL(ffmovie_ctx->fmt_ctx->comment,
~~~~~~~~~~~~~~~~~~~~ ^
/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:631:58: note: expanded from macro 'RETURN_STRINGL'

define RETURN_STRINGL(s, l, duplicate) { RETVAL_STRINGL(s, l, duplicate); return; }

                                                     ^

/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:619:69: note: expanded from macro 'RETVAL_STRINGL'

define RETVAL_STRINGL(s, l, duplicate) ZVAL_STRINGL(return_value, s, l, duplicate)

                                                                       ^

/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:579:20: note: expanded from macro 'ZVAL_STRINGL'
const char *s=(s); int l=l; \ ^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:532:42: error: no member named 'comment' in 'struct AVFormatContext'
strlen(ffmovie_ctx->fmt_ctx->comment), 1);
~~~~~~~~~~~~~~~~~~~~ ^
/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:631:61: note: expanded from macro 'RETURN_STRINGL'

define RETURN_STRINGL(s, l, duplicate) { RETVAL_STRINGL(s, l, duplicate); return; }

                                                        ^

/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:619:72: note: expanded from macro 'RETVAL_STRINGL'

define RETVAL_STRINGL(s, l, duplicate) ZVAL_STRINGL(return_value, s, l, duplicate)

                                                                          ^

/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:579:32: note: expanded from macro 'ZVAL_STRINGL'
const char *s=(s); int l=l; \ ^
/Users/salex/Downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c:546:42: error: no member named 'title' in 'struct AVFormatContext'
RETURN_STRINGL(ffmovie_ctx->fmt_ctx->title,
~~~~~~~~~~~~~~~~~~~~ ^
/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:631:58: note: expanded from macro 'RETURN_STRINGL'

define RETURN_STRINGL(s, l, duplicate) { RETVAL_STRINGL(s, l, duplicate); return; }

                                                     ^

/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:619:69: note: expanded from macro 'RETVAL_STRINGL'

define RETVAL_STRINGL(s, l, duplicate) ZVAL_STRINGL(return_value, s, l, duplicate)

                                                                       ^

/usr/local/Cellar/php54/5.4.24/include/php/Zend/zend_API.h:579:20: note: expanded from macro 'ZVAL_STRINGL'
const char *s=(s); int l=l; \

Discussion


Log in to post a comment.