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 | 214 | return 1; |
| 215 | 215 | } |
| 216 | 216 | |
| 217 | − av_register_all(); | |
| 218 | − | |
| 219 | 217 | if (video_decode(argv[1]) != 0) |
| 220 | 218 | return 1; |
| 221 | 219 | |
| @@ -231,8 +231,6 @@ int main(int argc, char* argv[]) · 230 unmodified lines | ||
| 231 | 231 | AVFormatContext *fmt_ctx = NULL; |
| 232 | 232 | AVFormatContext *fmt_ctx_no_decode = NULL; |
| 233 | 233 | |
| 234 | − av_register_all(); | |
| 235 | − | |
| 236 | 234 | if (argc < 2) { |
| 237 | 235 | av_log(NULL, AV_LOG_ERROR, "Usage: %s <input>\n", argv[0]); |
| 238 | 236 | return -1; |
| @@ -245,8 +245,6 @@ int main(void) · 244 unmodified lines | ||
| 245 | 245 | int sample_rates[] = {8000, 44100, 48000, 192000}; |
| 246 | 246 | int cl, sr; |
| 247 | 247 | |
| 248 | − avcodec_register_all(); | |
| 249 | − | |
| 250 | 248 | enc = avcodec_find_encoder(AV_CODEC_ID_FLAC); |
| 251 | 249 | if (!enc) { |
| 252 | 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 | 158 | return 1; |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | − av_register_all(); | |
| 162 | − | |
| 163 | 161 | if (video_decode_example(argv[1]) != 0) |
| 164 | 162 | return 1; |
| 165 | 163 | |
| @@ -279,8 +279,6 @@ int main(int argc, char **argv) · 278 unmodified lines | ||
| 279 | 279 | return 1; |
| 280 | 280 | } |
| 281 | 281 | |
| 282 | − av_register_all(); | |
| 283 | − | |
| 284 | 282 | if (seek_test(argv[1], argv[2], argv[3]) != 0) |
| 285 | 283 | return 1; |
| 286 | 284 | |