Skip to content

Commit

Permalink
fix av_err2str compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
omxcodec committed Mar 9, 2014
1 parent 5ab624e commit 007b352
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.cn
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,5 @@ branch: cm_maguro-10.1
3. 需要集成更多的音视频编解码器
4. 需要集成更多的文件格式解析器

如果这个项目对您有帮助,或者您想讨论跟此相关相关的话题,请联系本人:
如果这个项目对您有帮助,或者您想讨论跟此相关的话题,请联系本人:
Michael Chen (omxcodec@gmail.com)
5 changes: 5 additions & 0 deletions utils/ffmpeg_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ int packet_queue_get(PacketQueue *q, AVPacket *pkt, int block);
bool setup_vorbis_extradata(uint8_t **extradata, int *extradata_size,
const uint8_t *header_start[3], const int header_len[3]);

#undef av_err2str
#define av_err2str(errnum) \
av_make_error_string((char*)__builtin_alloca(AV_ERROR_MAX_STRING_SIZE), \
AV_ERROR_MAX_STRING_SIZE, errnum)

} // namespace android

#endif // FFMPEG_UTILS_H_

0 comments on commit 007b352

Please sign in to comment.