Skip to content

added a fix for undefined symbol: avcodec_alloc_frame in Unknown on line 0 #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 13, 2016

Conversation

pbek
Copy link

@pbek pbek commented Jan 13, 2016

It would be better to do a

#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55,28,1)
#define av_frame_alloc avcodec_alloc_frame
#endif

but that threw an error

php_ffmpeg.h:61:44: error: missing binary operator before token "("
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55,28,1)

…line 0`

It would be better to do a
```c
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55,28,1)
#define av_frame_alloc avcodec_alloc_frame
#endif
```
but that threw an error
```
php_ffmpeg.h:61:44: error: missing binary operator before token "("
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55,28,1)
```
tony2001 added a commit that referenced this pull request Jan 13, 2016
added a fix for `undefined symbol: avcodec_alloc_frame in Unknown on line 0`
@tony2001 tony2001 merged commit ac3efb0 into tony2001:master Jan 13, 2016
@centminmod centminmod mentioned this pull request Jan 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants