Advertisement
Alucard

moc-unstable

May 9th, 2022
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.47 KB | None | 0 0
  1. ffmpeg.c:69:9: error: unknown type name ‘AVCodecContext’
  2. 69 | AVCodecContext *enc;
  3. | ^~~~~~~~~~~~~~
  4. ffmpeg.c: In function ‘find_first_audio’:
  5. ffmpeg.c:198:40: error: ‘AVStream’ has no member named ‘codec’
  6. 198 | if (ic->streams[result]->codec->codec_type == AVMEDIA_TYPE_AUDIO)
  7. | ^~
  8. ffmpeg.c: At top level:
  9. ffmpeg.c:295:43: warning: ‘enum AVLockOp’ declared inside parameter list will not be visible outside of this definition or declaration
  10. 295 | static int locking_cb (void **mutex, enum AVLockOp op)
  11. | ^~~~~~~~
  12. ffmpeg.c:295:52: error: parameter 2 (‘op’) has incomplete type
  13. 295 | static int locking_cb (void **mutex, enum AVLockOp op)
  14. | ~~~~~~~~~~~~~~^~
  15. ffmpeg.c: In function ‘locking_cb’:
  16. ffmpeg.c:300:14: error: ‘AV_LOCK_CREATE’ undeclared (first use in this function); did you mean ‘AV_LOG_TRACE’?
  17. 300 | case AV_LOCK_CREATE:
  18. | ^~~~~~~~~~~~~~
  19. | AV_LOG_TRACE
  20. ffmpeg.c:300:14: note: each undeclared identifier is reported only once for each function it appears in
  21. ffmpeg.c:304:14: error: ‘AV_LOCK_OBTAIN’ undeclared (first use in this function)
  22. 304 | case AV_LOCK_OBTAIN:
  23. | ^~~~~~~~~~~~~~
  24. ffmpeg.c:307:14: error: ‘AV_LOCK_RELEASE’ undeclared (first use in this function)
  25. 307 | case AV_LOCK_RELEASE:
  26. | ^~~~~~~~~~~~~~~
  27. ffmpeg.c:310:14: error: ‘AV_LOCK_DESTROY’ undeclared (first use in this function)
  28. 310 | case AV_LOCK_DESTROY:
  29. | ^~~~~~~~~~~~~~~
  30. ffmpeg.c:295:52: warning: unused parameter ‘op’ [-Wunused-parameter]
  31. 295 | static int locking_cb (void **mutex, enum AVLockOp op)
  32. | ~~~~~~~~~~~~~~^~
  33. ffmpeg.c: In function ‘ffmpeg_init’:
  34. ffmpeg.c:379:9: warning: implicit declaration of function ‘avcodec_register_all’ [-Wimplicit-function-declaration]
  35. 379 | avcodec_register_all ();
  36. | ^~~~~~~~~~~~~~~~~~~~
  37. ffmpeg.c:380:9: warning: implicit declaration of function ‘av_register_all’ [-Wimplicit-function-declaration]
  38. 380 | av_register_all ();
  39. | ^~~~~~~~~~~~~~~
  40. ffmpeg.c:386:14: warning: implicit declaration of function ‘av_lockmgr_register’ [-Wimplicit-function-declaration]
  41. 386 | rc = av_lockmgr_register (locking_cb);
  42. | ^~~~~~~~~~~~~~~~~~~
  43. ffmpeg.c: In function ‘fmt_from_sample_fmt’:
  44. ffmpeg.c:472:26: error: request for member ‘sample_fmt’ in something not a structure or union
  45. 472 | switch (data->enc->sample_fmt) {
  46. | ^~
  47. ffmpeg.c: In function ‘is_seek_broken’:
  48. ffmpeg.c:522:13: warning: implicit declaration of function ‘avcodec_version’; did you mean ‘avformat_version’? [-Wimplicit-function-declaration]
  49. 522 | if (avcodec_version () < AV_VERSION_INT(55,8,100))
  50. | ^~~~~~~~~~~~~~~
  51. | avformat_version
  52. ffmpeg.c: In function ‘set_downmixing’:
  53. ffmpeg.c:538:57: error: request for member ‘channel_layout’ in something not a structure or union
  54. 538 | if (av_get_channel_layout_nb_channels (data->enc->channel_layout) <= 2)
  55. | ^~
  56. ffmpeg.c:541:18: error: request for member ‘request_channel_layout’ in something not a structure or union
  57. 541 | data->enc->request_channel_layout = AV_CH_LAYOUT_STEREO;
  58. | ^~
  59. ffmpeg.c: In function ‘ffmpeg_open_internal’:
  60. ffmpeg.c:676:33: error: ‘AVStream’ has no member named ‘codec’
  61. 676 | data->enc = data->stream->codec;
  62. | ^~
  63. ffmpeg.c:678:54: error: request for member ‘codec_id’ in something not a structure or union
  64. 678 | data->codec = avcodec_find_decoder (data->enc->codec_id);
  65. | ^~
  66. ffmpeg.c:709:26: error: request for member ‘flags’ in something not a structure or union
  67. 709 | data->enc->flags |= AV_CODEC_FLAG_TRUNCATED;
  68. | ^~
  69. ffmpeg.c:709:37: error: ‘AV_CODEC_FLAG_TRUNCATED’ undeclared (first use in this function); did you mean ‘AV_CODEC_CAP_TRUNCATED’?
  70. 709 | data->enc->flags |= AV_CODEC_FLAG_TRUNCATED;
  71. | ^~~~~~~~~~~~~~~~~~~~~~~
  72. | AV_CODEC_CAP_TRUNCATED
  73. ffmpeg.c:711:13: warning: implicit declaration of function ‘avcodec_open2’; did you mean ‘avio_open2’? [-Wimplicit-function-declaration]
  74. 711 | if (avcodec_open2 (data->enc, data->codec, NULL) < 0)
  75. | ^~~~~~~~~~~~~
  76. | avio_open2
  77. ffmpeg.c:721:65: error: request for member ‘sample_fmt’ in something not a structure or union
  78. 721 | av_get_sample_fmt_name (data->enc->sample_fmt));
  79. | ^~
  80. ffmpeg.c:722:17: warning: implicit declaration of function ‘avcodec_close’; did you mean ‘avio_close’? [-Wimplicit-function-declaration]
  81. 722 | avcodec_close (data->enc);
  82. | ^~~~~~~~~~~~~
  83. | avio_close
  84. ffmpeg.c: In function ‘ffmpeg_can_decode’:
  85. ffmpeg.c:806:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  86. 806 | fmt = av_probe_input_format (&probe_data, 1);
  87. | ^
  88. ffmpeg.c: In function ‘decode_packet’:
  89. ffmpeg.c:980:23: warning: implicit declaration of function ‘avcodec_decode_audio4’ [-Wimplicit-function-declaration]
  90. 980 | len = avcodec_decode_audio4 (data->enc, frame, &got_frame, pkt);
  91. | ^~~~~~~~~~~~~~~~~~~~~
  92. ffmpeg.c:1002:63: error: request for member ‘sample_fmt’ in something not a structure or union
  93. 1002 | is_planar = av_sample_fmt_is_planar (data->enc->sample_fmt);
  94. | ^~
  95. ffmpeg.c:1005:60: error: request for member ‘channels’ in something not a structure or union
  96. 1005 | * data->enc->channels;
  97. | ^~
  98. ffmpeg.c:1007:43: error: request for member ‘channels’ in something not a structure or union
  99. 1007 | if (is_planar && data->enc->channels > 1) {
  100. | ^~
  101. ffmpeg.c:1013:60: error: request for member ‘channels’ in something not a structure or union
  102. 1013 | for (ch = 0; ch < data->enc->channels; ch += 1)
  103. | ^~
  104. ffmpeg.c:1014:77: error: request for member ‘channels’ in something not a structure or union
  105. 1014 | memcpy (packed + (sample * data->enc->channels + ch)
  106. | ^~
  107. ffmpeg.c: In function ‘seek_in_stream’:
  108. ffmpeg.c:1073:25: error: ‘AVStream’ has no member named ‘cur_dts’
  109. 1073 | if (data->stream->cur_dts > seek_ts)
  110. | ^~
  111. ffmpeg.c:1082:9: warning: implicit declaration of function ‘avcodec_flush_buffers’ [-Wimplicit-function-declaration]
  112. 1082 | avcodec_flush_buffers (data->stream->codec);
  113. | ^~~~~~~~~~~~~~~~~~~~~
  114. ffmpeg.c:1082:44: error: ‘AVStream’ has no member named ‘codec’
  115. 1082 | avcodec_flush_buffers (data->stream->codec);
  116. | ^~
  117. ffmpeg.c: In function ‘ffmpeg_decode’:
  118. ffmpeg.c:1114:43: error: request for member ‘channels’ in something not a structure or union
  119. 1114 | sound_params->channels = data->enc->channels;
  120. | ^~
  121. ffmpeg.c:1115:39: error: request for member ‘sample_rate’ in something not a structure or union
  122. 1115 | sound_params->rate = data->enc->sample_rate;
  123. | ^~
  124. ffmpeg.c: In function ‘ffmpeg_our_format_mime’:
  125. ffmpeg.c:1283:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  126. 1283 | fmt = av_guess_format (NULL, NULL, mime_type);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement