level 3
匆匆除草剂
楼主
In file included from ./include/libavutil/mem.h:33:0,
from ./include/libavutil/common.h:464,
from ./include/libavutil/avutil.h:288,
from ./include/libavutil/imgutils.h:30,
from demuxing_decoding.c:36:
demuxing_decoding.c: In function ‘int decode_packet(int*, int)’:
./include/libavutil/error.h:120:95: error: taking address of temporary array
av_make_error_string((char[AV_ERROR_MAX_STRING_SIZE]){0}, AV_ERROR_MAX_STRING_SIZE, errnum)
^
demuxing_decoding.c:79:66: note: in expansion of macro ‘av_err2str’
fprintf(stderr, "Error decoding video frame (%s)\n", av_err2str(ret));
^
demuxing_decoding.c:96:58: error: invalid conversion from ‘int’ to ‘AVPixelFormat’ [-fpermissive]
av_get_pix_fmt_name(frame->format));
^
In file included from ./include/libavutil/imgutils.h:31:0,
from demuxing_decoding.c:36:
./include/libavutil/pixdesc.h:232:13: error: initializing argument 1 of ‘const char* av_get_pix_fmt_name(AVPixelFormat)’ [-fpermissive]
const char *av_get_pix_fmt_name(enum AVPixelFormat pix_fmt);
^
In file included from demuxing_decoding.c:38:0:
./include/libavutil/timestamp.h:76:94: error: taking address of temporary array
#define av_ts2timestr(ts, tb) av_ts_make_time_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts, tb)
^
demuxing_decoding.c:103:20: note: in expansion of macro ‘av_ts2timestr’
av_ts2timestr(frame->pts, &video_dec_ctx->time_base));
^
In file included from ./include/libavutil/mem.h:33:0,
from ./include/libavutil/common.h:464,
from ./include/libavutil/avutil.h:288,
from ./include/libavutil/imgutils.h:30,
from demuxing_decoding.c:36:
./include/libavutil/error.h:120:95: error: taking address of temporary array
av_make_error_string((char[AV_ERROR_MAX_STRING_SIZE]){0}, AV_ERROR_MAX_STRING_SIZE, errnum)
^
demuxing_decoding.c:118:66: note: in expansion of macro ‘av_err2str’
fprintf(stderr, "Error decoding audio frame (%s)\n", av_err2str(ret));
^
demuxing_decoding.c:128:97: error: invalid conversion from ‘int’ to ‘AVSampleFormat’ [-fpermissive]
size_t unpadded_linesize = frame->nb_samples * av_get_bytes_per_sample(frame->format);
^
In file included from demuxing_decoding.c:37:0:
./include/libavutil/samplefmt.h:138:5: error: initializing argument 1 of ‘int av_get_bytes_per_sample(AVSampleFormat)’ [-fpermissive]
int av_get_bytes_per_sample(enum AVSampleFormat sample_fmt);
^
In file included from demuxing_decoding.c:38:0:
./include/libavutil/timestamp.h:76:94: error: taking address of temporary array
#define av_ts2timestr(ts, tb) av_ts_make_time_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts, tb)
^
demuxing_decoding.c:132:20: note: in expansion of macro ‘av_ts2timestr’
av_ts2timestr(frame->pts, &audio_dec_ctx->time_base));
2016年03月21日 12点03分
1
from ./include/libavutil/common.h:464,
from ./include/libavutil/avutil.h:288,
from ./include/libavutil/imgutils.h:30,
from demuxing_decoding.c:36:
demuxing_decoding.c: In function ‘int decode_packet(int*, int)’:
./include/libavutil/error.h:120:95: error: taking address of temporary array
av_make_error_string((char[AV_ERROR_MAX_STRING_SIZE]){0}, AV_ERROR_MAX_STRING_SIZE, errnum)
^
demuxing_decoding.c:79:66: note: in expansion of macro ‘av_err2str’
fprintf(stderr, "Error decoding video frame (%s)\n", av_err2str(ret));
^
demuxing_decoding.c:96:58: error: invalid conversion from ‘int’ to ‘AVPixelFormat’ [-fpermissive]
av_get_pix_fmt_name(frame->format));
^
In file included from ./include/libavutil/imgutils.h:31:0,
from demuxing_decoding.c:36:
./include/libavutil/pixdesc.h:232:13: error: initializing argument 1 of ‘const char* av_get_pix_fmt_name(AVPixelFormat)’ [-fpermissive]
const char *av_get_pix_fmt_name(enum AVPixelFormat pix_fmt);
^
In file included from demuxing_decoding.c:38:0:
./include/libavutil/timestamp.h:76:94: error: taking address of temporary array
#define av_ts2timestr(ts, tb) av_ts_make_time_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts, tb)
^
demuxing_decoding.c:103:20: note: in expansion of macro ‘av_ts2timestr’
av_ts2timestr(frame->pts, &video_dec_ctx->time_base));
^
In file included from ./include/libavutil/mem.h:33:0,
from ./include/libavutil/common.h:464,
from ./include/libavutil/avutil.h:288,
from ./include/libavutil/imgutils.h:30,
from demuxing_decoding.c:36:
./include/libavutil/error.h:120:95: error: taking address of temporary array
av_make_error_string((char[AV_ERROR_MAX_STRING_SIZE]){0}, AV_ERROR_MAX_STRING_SIZE, errnum)
^
demuxing_decoding.c:118:66: note: in expansion of macro ‘av_err2str’
fprintf(stderr, "Error decoding audio frame (%s)\n", av_err2str(ret));
^
demuxing_decoding.c:128:97: error: invalid conversion from ‘int’ to ‘AVSampleFormat’ [-fpermissive]
size_t unpadded_linesize = frame->nb_samples * av_get_bytes_per_sample(frame->format);
^
In file included from demuxing_decoding.c:37:0:
./include/libavutil/samplefmt.h:138:5: error: initializing argument 1 of ‘int av_get_bytes_per_sample(AVSampleFormat)’ [-fpermissive]
int av_get_bytes_per_sample(enum AVSampleFormat sample_fmt);
^
In file included from demuxing_decoding.c:38:0:
./include/libavutil/timestamp.h:76:94: error: taking address of temporary array
#define av_ts2timestr(ts, tb) av_ts_make_time_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts, tb)
^
demuxing_decoding.c:132:20: note: in expansion of macro ‘av_ts2timestr’
av_ts2timestr(frame->pts, &audio_dec_ctx->time_base));
