avformat/img2dec: Support -loop with pipes