about 1ms faster startup time
Showing the changes to libavfilter/avfilter.c (1 of 3 files). Show all
Unified · Split
| @@ -490,7 +490,7 @@ int avfilter_register(AVFilter *filter) · 489 unmodified lines | ||
| 490 | 490 | |
| 491 | 491 | filter->next = NULL; |
| 492 | 492 | |
| 493 | − while(avpriv_atomic_ptr_cas((void * volatile *)f, NULL, filter)) | |
| 493 | + while(*f || avpriv_atomic_ptr_cas((void * volatile *)f, NULL, filter)) | |
| 494 | 494 | f = &(*f)->next; |
| 495 | 495 | |
| 496 | 496 | return 0; |