Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ffmpeg.c:69:9: error: unknown type name ‘AVCodecContext’
- 69 | AVCodecContext *enc;
- | ^~~~~~~~~~~~~~
- ffmpeg.c: In function ‘find_first_audio’:
- ffmpeg.c:198:40: error: ‘AVStream’ has no member named ‘codec’
- 198 | if (ic->streams[result]->codec->codec_type == AVMEDIA_TYPE_AUDIO)
- | ^~
- ffmpeg.c: At top level:
- ffmpeg.c:295:43: warning: ‘enum AVLockOp’ declared inside parameter list will not be visible outside of this definition or declaration
- 295 | static int locking_cb (void **mutex, enum AVLockOp op)
- | ^~~~~~~~
- ffmpeg.c:295:52: error: parameter 2 (‘op’) has incomplete type
- 295 | static int locking_cb (void **mutex, enum AVLockOp op)
- | ~~~~~~~~~~~~~~^~
- ffmpeg.c: In function ‘locking_cb’:
- ffmpeg.c:300:14: error: ‘AV_LOCK_CREATE’ undeclared (first use in this function); did you mean ‘AV_LOG_TRACE’?
- 300 | case AV_LOCK_CREATE:
- | ^~~~~~~~~~~~~~
- | AV_LOG_TRACE
- ffmpeg.c:300:14: note: each undeclared identifier is reported only once for each function it appears in
- ffmpeg.c:304:14: error: ‘AV_LOCK_OBTAIN’ undeclared (first use in this function)
- 304 | case AV_LOCK_OBTAIN:
- | ^~~~~~~~~~~~~~
- ffmpeg.c:307:14: error: ‘AV_LOCK_RELEASE’ undeclared (first use in this function)
- 307 | case AV_LOCK_RELEASE:
- | ^~~~~~~~~~~~~~~
- ffmpeg.c:310:14: error: ‘AV_LOCK_DESTROY’ undeclared (first use in this function)
- 310 | case AV_LOCK_DESTROY:
- | ^~~~~~~~~~~~~~~
- ffmpeg.c:295:52: warning: unused parameter ‘op’ [-Wunused-parameter]
- 295 | static int locking_cb (void **mutex, enum AVLockOp op)
- | ~~~~~~~~~~~~~~^~
- ffmpeg.c: In function ‘ffmpeg_init’:
- ffmpeg.c:379:9: warning: implicit declaration of function ‘avcodec_register_all’ [-Wimplicit-function-declaration]
- 379 | avcodec_register_all ();
- | ^~~~~~~~~~~~~~~~~~~~
- ffmpeg.c:380:9: warning: implicit declaration of function ‘av_register_all’ [-Wimplicit-function-declaration]
- 380 | av_register_all ();
- | ^~~~~~~~~~~~~~~
- ffmpeg.c:386:14: warning: implicit declaration of function ‘av_lockmgr_register’ [-Wimplicit-function-declaration]
- 386 | rc = av_lockmgr_register (locking_cb);
- | ^~~~~~~~~~~~~~~~~~~
- ffmpeg.c: In function ‘fmt_from_sample_fmt’:
- ffmpeg.c:472:26: error: request for member ‘sample_fmt’ in something not a structure or union
- 472 | switch (data->enc->sample_fmt) {
- | ^~
- ffmpeg.c: In function ‘is_seek_broken’:
- ffmpeg.c:522:13: warning: implicit declaration of function ‘avcodec_version’; did you mean ‘avformat_version’? [-Wimplicit-function-declaration]
- 522 | if (avcodec_version () < AV_VERSION_INT(55,8,100))
- | ^~~~~~~~~~~~~~~
- | avformat_version
- ffmpeg.c: In function ‘set_downmixing’:
- ffmpeg.c:538:57: error: request for member ‘channel_layout’ in something not a structure or union
- 538 | if (av_get_channel_layout_nb_channels (data->enc->channel_layout) <= 2)
- | ^~
- ffmpeg.c:541:18: error: request for member ‘request_channel_layout’ in something not a structure or union
- 541 | data->enc->request_channel_layout = AV_CH_LAYOUT_STEREO;
- | ^~
- ffmpeg.c: In function ‘ffmpeg_open_internal’:
- ffmpeg.c:676:33: error: ‘AVStream’ has no member named ‘codec’
- 676 | data->enc = data->stream->codec;
- | ^~
- ffmpeg.c:678:54: error: request for member ‘codec_id’ in something not a structure or union
- 678 | data->codec = avcodec_find_decoder (data->enc->codec_id);
- | ^~
- ffmpeg.c:709:26: error: request for member ‘flags’ in something not a structure or union
- 709 | data->enc->flags |= AV_CODEC_FLAG_TRUNCATED;
- | ^~
- ffmpeg.c:709:37: error: ‘AV_CODEC_FLAG_TRUNCATED’ undeclared (first use in this function); did you mean ‘AV_CODEC_CAP_TRUNCATED’?
- 709 | data->enc->flags |= AV_CODEC_FLAG_TRUNCATED;
- | ^~~~~~~~~~~~~~~~~~~~~~~
- | AV_CODEC_CAP_TRUNCATED
- ffmpeg.c:711:13: warning: implicit declaration of function ‘avcodec_open2’; did you mean ‘avio_open2’? [-Wimplicit-function-declaration]
- 711 | if (avcodec_open2 (data->enc, data->codec, NULL) < 0)
- | ^~~~~~~~~~~~~
- | avio_open2
- ffmpeg.c:721:65: error: request for member ‘sample_fmt’ in something not a structure or union
- 721 | av_get_sample_fmt_name (data->enc->sample_fmt));
- | ^~
- ffmpeg.c:722:17: warning: implicit declaration of function ‘avcodec_close’; did you mean ‘avio_close’? [-Wimplicit-function-declaration]
- 722 | avcodec_close (data->enc);
- | ^~~~~~~~~~~~~
- | avio_close
- ffmpeg.c: In function ‘ffmpeg_can_decode’:
- ffmpeg.c:806:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
- 806 | fmt = av_probe_input_format (&probe_data, 1);
- | ^
- ffmpeg.c: In function ‘decode_packet’:
- ffmpeg.c:980:23: warning: implicit declaration of function ‘avcodec_decode_audio4’ [-Wimplicit-function-declaration]
- 980 | len = avcodec_decode_audio4 (data->enc, frame, &got_frame, pkt);
- | ^~~~~~~~~~~~~~~~~~~~~
- ffmpeg.c:1002:63: error: request for member ‘sample_fmt’ in something not a structure or union
- 1002 | is_planar = av_sample_fmt_is_planar (data->enc->sample_fmt);
- | ^~
- ffmpeg.c:1005:60: error: request for member ‘channels’ in something not a structure or union
- 1005 | * data->enc->channels;
- | ^~
- ffmpeg.c:1007:43: error: request for member ‘channels’ in something not a structure or union
- 1007 | if (is_planar && data->enc->channels > 1) {
- | ^~
- ffmpeg.c:1013:60: error: request for member ‘channels’ in something not a structure or union
- 1013 | for (ch = 0; ch < data->enc->channels; ch += 1)
- | ^~
- ffmpeg.c:1014:77: error: request for member ‘channels’ in something not a structure or union
- 1014 | memcpy (packed + (sample * data->enc->channels + ch)
- | ^~
- ffmpeg.c: In function ‘seek_in_stream’:
- ffmpeg.c:1073:25: error: ‘AVStream’ has no member named ‘cur_dts’
- 1073 | if (data->stream->cur_dts > seek_ts)
- | ^~
- ffmpeg.c:1082:9: warning: implicit declaration of function ‘avcodec_flush_buffers’ [-Wimplicit-function-declaration]
- 1082 | avcodec_flush_buffers (data->stream->codec);
- | ^~~~~~~~~~~~~~~~~~~~~
- ffmpeg.c:1082:44: error: ‘AVStream’ has no member named ‘codec’
- 1082 | avcodec_flush_buffers (data->stream->codec);
- | ^~
- ffmpeg.c: In function ‘ffmpeg_decode’:
- ffmpeg.c:1114:43: error: request for member ‘channels’ in something not a structure or union
- 1114 | sound_params->channels = data->enc->channels;
- | ^~
- ffmpeg.c:1115:39: error: request for member ‘sample_rate’ in something not a structure or union
- 1115 | sound_params->rate = data->enc->sample_rate;
- | ^~
- ffmpeg.c: In function ‘ffmpeg_our_format_mime’:
- ffmpeg.c:1283:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1283 | fmt = av_guess_format (NULL, NULL, mime_type);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement