It does seem to work on rawhide with FFmpeg 3.2.4. So I'm guessing this is a bug in FFmpeg. I'll retry with FFmpeg 3.2.x on F25 later.