avdevice_register_all() is still required to register devices into lavf (this is required due to lavd being somewhat of a hack).
Showing the changes to tests/api (5 of 28 files). Show all
Unified · Split
| @@ -214,8 +214,6 @@ int main(int argc, char **argv) · 213 unmodified lines | |||
| 214 | return 1; | 214 | return 1; |
| 215 | } | 215 | } |
| 216 | 216 | ||
| 217 | av_register_all(); | ||
| 218 | |||
| 219 | if (video_decode(argv[1]) != 0) | 217 | if (video_decode(argv[1]) != 0) |
| 220 | return 1; | 218 | return 1; |
| 221 | 219 | ||
| @@ -231,8 +231,6 @@ int main(int argc, char* argv[]) · 230 unmodified lines | |||
| 231 | AVFormatContext *fmt_ctx = NULL; | 231 | AVFormatContext *fmt_ctx = NULL; |
| 232 | AVFormatContext *fmt_ctx_no_decode = NULL; | 232 | AVFormatContext *fmt_ctx_no_decode = NULL; |
| 233 | 233 | ||
| 234 | av_register_all(); | ||
| 235 | |||
| 236 | if (argc < 2) { | 234 | if (argc < 2) { |
| 237 | av_log(NULL, AV_LOG_ERROR, "Usage: %s <input>\n", argv[0]); | 235 | av_log(NULL, AV_LOG_ERROR, "Usage: %s <input>\n", argv[0]); |
| 238 | return -1; | 236 | return -1; |
| @@ -245,8 +245,6 @@ int main(void) · 244 unmodified lines | |||
| 245 | int sample_rates[] = {8000, 44100, 48000, 192000}; | 245 | int sample_rates[] = {8000, 44100, 48000, 192000}; |
| 246 | int cl, sr; | 246 | int cl, sr; |
| 247 | 247 | ||
| 248 | avcodec_register_all(); | ||
| 249 | |||
| 250 | enc = avcodec_find_encoder(AV_CODEC_ID_FLAC); | 248 | enc = avcodec_find_encoder(AV_CODEC_ID_FLAC); |
| 251 | if (!enc) { | 249 | if (!enc) { |
| 252 | av_log(NULL, AV_LOG_ERROR, "Can't find encoder\n"); | 250 | av_log(NULL, AV_LOG_ERROR, "Can't find encoder\n"); |
| @@ -158,8 +158,6 @@ int main(int argc, char **argv) · 157 unmodified lines | |||
| 158 | return 1; | 158 | return 1; |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | av_register_all(); | ||
| 162 | |||
| 163 | if (video_decode_example(argv[1]) != 0) | 161 | if (video_decode_example(argv[1]) != 0) |
| 164 | return 1; | 162 | return 1; |
| 165 | 163 | ||
| @@ -279,8 +279,6 @@ int main(int argc, char **argv) · 278 unmodified lines | |||
| 279 | return 1; | 279 | return 1; |
| 280 | } | 280 | } |
| 281 | 281 | ||
| 282 | av_register_all(); | ||
| 283 | |||
| 284 | if (seek_test(argv[1], argv[2], argv[3]) != 0) | 282 | if (seek_test(argv[1], argv[2], argv[3]) != 0) |
| 285 | return 1; | 283 | return 1; |
| 286 | 284 | ||